pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedWho can resolve this BUG ?
2+ messages / 2 participants
[nested] [flat]
* Who can resolve this BUG ?
@ 2001-05-17 05:37 Alexander Dederer <dederer@spb.cityline.ru>
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dederer @ 2001-05-17 05:37 UTC (permalink / raw)
To: pgsql-admin@postgresql.org.pgsql-general
INM1=# explain select ref_num from grls where ag_id in (24);
Index Scan using grls_ag_id on grls (cost=0.00..597.87 rows=849 width=12)
IMN1=# explain select ref_num from grls where ag_id in (select 24);
Seq Scan on grls (cost=0.00..992.44 rows=30195 width=12)
SubPlan
-> Materialize (cost=0.00..0.00 rows=0 width=0)
-> Result (cost=0.00..0.00 rows=0 width=0)
IMN1=# explain select ref_num from grls where ag_id = (select 24);
Index Scan using grls_ag_id on grls (cost=0.00..597.87 rows=849 width=12)
InitPlan
-> Result (cost=0.00..0.00 rows=0 width=0)
". . . in (24) " work in 35 faster than ". . . in (select 24)". In the
last don't use indices for increase perfomans.
It's been normaly work in PostgreSQL version 7.2 ? Or not?
P.S.
Sorry my English.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Who can resolve this BUG ?
@ 2001-05-18 16:11 Gregory Wood <gregw@com-stock.com>
parent: Alexander Dederer <dederer@spb.cityline.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Gregory Wood @ 2001-05-18 16:11 UTC (permalink / raw)
To: Alexander Dederer <dederer@spb.cityline.ru>; +Cc: PostgreSQL-General <pgsql-general@postgresql.org>
> IMN1=# explain select ref_num from grls where ag_id = (select 24);
> Index Scan using grls_ag_id on grls (cost=0.00..597.87 rows=849 width=12)
> InitPlan
> -> Result (cost=0.00..0.00 rows=0 width=0)
>
> ". . . in (24) " work in 35 faster than ". . . in (select 24)". In the
> last don't use indices for increase perfomans.
> It's been normaly work in PostgreSQL version 7.2 ? Or not?
http://www.ca.postgresql.org/docs/faq-english.html#4.23
Greg
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-05-18 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-17 05:37 Who can resolve this BUG ? Alexander Dederer <dederer@spb.cityline.ru>
2001-05-18 16:11 ` Gregory Wood <gregw@com-stock.com>
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