X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 10AA4D1B4F4 for ; Wed, 5 Nov 2003 18:52:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93698-09 for ; Wed, 5 Nov 2003 14:52:15 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 9F13ED1B509 for ; Wed, 5 Nov 2003 14:52:13 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hA5IqE19003916; Wed, 5 Nov 2003 13:52:14 -0500 (EST) To: Marek Florianczyk Cc: pgsql-admin@postgresql.org Subject: Re: performance problem - 10.000 databases In-reply-to: <1068057055.28827.180.camel@franki-laptop.tpi.pl> References: <1067594647.22286.57.camel@franki-laptop.tpi.pl> <9643.1067610219@sss.pgh.pa.us> <1068039213.28814.116.camel@franki-laptop.tpi.pl> <3453.1068055189@sss.pgh.pa.us> <1068056378.28827.172.camel@franki-laptop.tpi.pl> <3767.1068057262@sss.pgh.pa.us> <1068057055.28827.180.camel@franki-laptop.tpi.pl> Comments: In-reply-to Marek Florianczyk message dated "05 Nov 2003 19:30:55 +0100" Date: Wed, 05 Nov 2003 13:52:14 -0500 Message-ID: <3915.1068058334@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/74 X-Sequence-Number: 11062 Marek Florianczyk writes: > Maybe reconnect is to often, but how to explain that reular queries like > select * from table1 ale much faster than \d's ? ( my post to Jeff ) [ further experimentation... ] Ah-hah, I see the problem in 7.3, though not in 7.4 which is what I was testing to begin with. 7.4 is smarter about optimizing the LEFT JOINs that are used in \d's queries. regards, tom lane