From: siganos@gmail.com
To: pgsql-sql@postgresql.org
Subject: Re: Question about a CIDR based query
Date: 2 Jul 2004 10:39:14 -0700
Message-ID: <ebba5a93.0407020939.3734121b@posting.google.com> (raw)
References: <ebba5a930406241343173046c7@mail.gmail.com>
<ebba5a93.0406261506.7a0f7558@posting.google.com>
<200406291652.24900.josh@agliodbs.com>
<200406292049.06283.josh@agliodbs.com>
Hi Josh,
Ok, first the explain analyze ....
June_03=# explain analyze select * from tmp where route
>>='62.1.1.0/24';
QUERY PLAN
-----------------------------------------------------------------------------------------------------------
Seq Scan on tmp (cost=0.00..606.60 rows=14544 width=33) (actual
time=3.862..15.366 rows=1 loops=1)
Filter: (route >>= '62.1.1.0/24'::cidr)
Total runtime: 15.493 ms
(3 rows)
And the version of postgres
June_03=# select version();
version
--------------------------------------------------------------------------------------------------------------------
PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)
(1 row)
Thanks,
Georgos
josh@agliodbs.com (Josh Berkus) wrote in message news:<200406292049.06283.josh@agliodbs.com>...
> George,
>
> > Um, no, I need an EXPLAIN ANALYZE, not just an EXPLAIN. Thanks.
> >
> > > June_03=# explain select * from tmp where route >>='62.1.1.0/24';
> > > QUERY PLAN
> > > ----------------------------------------------------------------
> > > Seq Scan on tmp (cost=0.00..606.60 rows=14544 width=33)
> > > Filter: (route >>= '62.1.1.0/24'::cidr)
>
> Oh, and also a SELECT VERSION(); would be nice.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: siganos@gmail.com
Subject: Re: Question about a CIDR based query
In-Reply-To: <ebba5a93.0407020939.3734121b@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox