[BUGS] dynamic-static date once again

2001-09-13 Thread Tomasz Myrta
Tom Lane wrote: > > Tomasz Myrta <[EMAIL PROTECTED]> writes: > > Why the first expression is 25 times slower? > > Hard to say, when you haven't shown us the schema. (Column datatypes, > definitions of available indexes, etc are all critical information for >

[BUGS] dynamic date

2001-09-13 Thread Tomasz Myrta
I have something like this: billy=# EXPLAIN SELECT * from kursy where id_trasy=1 and data_kursu=date('2001-12-12'); NOTICE: QUERY PLAN: Index Scan using pp on kursy (cost=0.00..51.55 rows=1 width=18) billy=# EXPLAIN SELECT * from kursy where id_trasy=1 and data_kursu='2001-12-12'; NOTICE:

[BUGS] dynamic-static date

2001-09-12 Thread Tomasz Myrta
I have something like this: billy=# EXPLAIN SELECT * from kursy where id_trasy=1 and data_kursu=date('2001-12-12'); NOTICE: QUERY PLAN: Index Scan using pp on kursy (cost=0.00..51.55 rows=1 width=18) billy=# EXPLAIN SELECT * from kursy where id_trasy=1 and data_kursu='2001-12-12'; NOTICE: