X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0BCC2474E5C for ; Sun, 23 Feb 2003 22:55:46 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 73403-09 for ; Sun, 23 Feb 2003 22:55:35 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4252C474E53 for ; Sun, 23 Feb 2003 22:55:35 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1O3td5u026641; Sun, 23 Feb 2003 22:55:39 -0500 (EST) To: mallah@trade-india.com Cc: pgsql-admin@postgresql.org Subject: Re: \d tablename with psql over slow links... In-reply-to: <1042.219.65.235.8.1046018279.squirrel@mail.trade-india.com> References: <1042.219.65.235.8.1046018279.squirrel@mail.trade-india.com> Comments: In-reply-to message dated "Sun, 23 Feb 2003 22:07:59 +0530" Date: Sun, 23 Feb 2003 22:55:39 -0500 Message-ID: <26640.1046058939@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/367 X-Sequence-Number: 7565 writes: > I observed that a table which used to take 16 secs with \d was only taking > 6 secs if the query for default attribute values are shifted to top level query in > psql/describe.c ( function describeOneTableDetails ) . I've applied this patch with some small improvements (to shortcircuit the sub-SELECT for columns with no default). regards, tom lane