Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4IDnnA73761 for ; Fri, 18 May 2001 09:49:49 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4H5vJA78233; Thu, 17 May 2001 01:57:19 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4H5ZOH89254; Thu, 17 May 2001 01:35:24 -0400 (EDT) (envelope-from news) From: Alexander Dederer X-Newsgroups: comp.databases.postgresql.admin, comp.databases.postgresql.general, comp.databases.postgresql.questions Subject: Who can resolve this BUG ? Followup-To: comp.databases.postgresql.admin Date: Thu, 17 May 2001 09:37:22 +0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 20 Message-ID: <9dvnup$2n3q$1@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: scrappy@hub.org User-Agent: KNode/0.4 To: pgsql-admin@postgresql.org.pgsql-general@postgresql.org X-Archive-Number: 200105/85 X-Sequence-Number: 1432 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.