Re: again on index usage

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Daniel Kalchev" <daniel(at)digsys(dot)bg>
Cc: <pgsql-hackers(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: again on index usage
Date: 2002-01-15 14:10:55
Message-ID: EKEJJICOHDIEMGPNIFIJCELDGHAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Daniel Kalchev
>
> I tried this:
>
> db=# select * into iplog_test from iplog_gate200112;
> SELECT
> db=# create index iplog_test_ipaddr_idx on iplog_test(ipaddr);
> CREATE
> db=# cluster iplog_test_ipaddr_idx on iplog_test;
> CLUSTER
> db=# create index iplog_test_ipdate_idx on iplog_test(ipdate);
> CREATE
> db=# explain
> db-# SELECT sum(input), sum(output) FROM iplog_test

> db-# WHERE
> db-# '2001-12-01 00:00:00+02' <= ipdate AND ipdate < '2001-12-02
> 00:00:00+02'

Is there only one ipdate value which satisfies the above where clause ?

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2002-01-15 14:51:27 PostgreSQL v7.2b5 Released
Previous Message Tatsuo Ishii 2002-01-15 13:11:04 Re: 7.1 vs. 7.2 on AIX 5L