pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Dederer <dederer@spb.cityline.ru>
To: pgsql-admin@postgresql.org.pgsql-general
Subject: Who can resolve this BUG ?
Date: Thu, 17 May 2001 09:37:22 +0400
Message-ID: <9dvnup$2n3q$1@news.tht.net> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <9dvnup$2n3q$1@news.tht.net>
Permalink:  ../9dvnup$2n3q$1@news.tht.net/
Also on:    postgresql.org/message-id/9dvnup$2n3q$1@news.tht.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dederer@spb.cityline.ru, pgsql-admin@postgresql.org.pgsql-general
  Subject: Re: Who can resolve this BUG ?
  In-Reply-To: <9dvnup$2n3q$1@news.tht.net>
  References: <9dvnup$2n3q$1@news.tht.net>

* 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