pgsql 7.x...

From: Howie <caffeine(at)toodarkpark(dot)org>
To: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Cc: caffeine(at)toodarkpark(dot)org
Subject: pgsql 7.x...
Date: 1999-12-27 05:26:40
Message-ID: Pine.LNX.3.96.991227052453.25654m-100000@rabies.toodarkpark.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


will this function/index problem be fixed in 7.x ?

ircbot=> explain select * from logins where dttime = NOW();
NOTICE: QUERY PLAN:

Seq Scan on logins (cost=33530.89 rows=71043 width=52)
EXPLAIN
ircbot=> explain select * from logins where dttime = NOW()::datetime;
NOTICE: QUERY PLAN:

Seq Scan on logins (cost=33530.89 rows=71043 width=52)

EXPLAIN
ircbot=> select now();
now
----------------------
1999-12-27 00:23:17-05
(1 row)

ircbot=> explain select * from logins where dttime='1999-12-27
00:23:17-05'::datetime;
NOTICE: QUERY PLAN:

Index Scan using logins_dttime_idx on logins (cost=2.54 rows=11 width=52)

EXPLAIN

( logins actually has 755,728 rows right now )

---
Howie <caffeine(at)toodarkpark(dot)org> URL: http://www.toodarkpark.org
"I've learned that you cannot make someone love you.
All you can do is stalk them and hope they panic and give in."

Responses

Browse pgsql-general by date

  From Date Subject
Next Message franck 1999-12-27 09:33:20 Re: [GENERAL] Future of PostgreSQL
Previous Message Lamar Owen 1999-12-27 03:18:54 Re: [GENERAL] Future of PostgreSQL