X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C83F89FA5DD for ; Fri, 9 Jun 2006 18:08:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 88768-04 for ; Fri, 9 Jun 2006 18:08:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9C8089FA1A8 for ; Fri, 9 Jun 2006 18:08:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k59L8exC024835; Fri, 9 Jun 2006 17:08:40 -0400 (EDT) To: "Jim C. Nasby" cc: pgsql-hackers@postgresql.org Subject: Re: List schema contents In-reply-to: <20060609210000.GJ57289@pervasive.com> References: <20060609193356.GC57289@pervasive.com> <24470.1149884416@sss.pgh.pa.us> <20060609202741.GF57289@pervasive.com> <24709.1149886507@sss.pgh.pa.us> <20060609210000.GJ57289@pervasive.com> Comments: In-reply-to "Jim C. Nasby" message dated "Fri, 09 Jun 2006 16:00:01 -0500" Date: Fri, 09 Jun 2006 17:08:40 -0400 Message-ID: <24834.1149887320@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/470 X-Sequence-Number: 84703 "Jim C. Nasby" writes: > On Fri, Jun 09, 2006 at 04:55:07PM -0400, Tom Lane wrote: >> I'd be the first to agree that the behavior of \d isn't particularly >> orthogonal, but it's not the pattern language that's the problem, it's >> the command itself. > Perhaps \d without an argument should just do whatever \dtsv does? That's exactly what it does ... without an argument. The non-orthogonality is that adding an argument changes the printout style, instead of just determining which objects are displayed. See the psql man page: Note: If \d is used without a pattern argument, it is equivalent to \dtvs which will show a list of all tables, views, and sequences. This is purely a convenience measure. regards, tom lane