X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 00F88475AE5 for ; Mon, 21 Apr 2003 13:08:11 -0400 (EDT) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by postgresql.org (Postfix) with ESMTP id 08959474E42 for ; Mon, 21 Apr 2003 13:08:09 -0400 (EDT) Received: from DU150.N224.ResNet.QueensU.CA (DU150.N224.ResNet.QueensU.CA [130.15.224.150]) by bob.samurai.com (Postfix) with ESMTP id 923821D67; Mon, 21 Apr 2003 13:07:14 -0400 (EDT) Subject: Re: Are we losing momentum? From: Neil Conway To: "scott.marlowe" Cc: Hannu Krosing , greg@turnstep.com, PostgreSQL Hackers In-Reply-To: References: Content-Type: text/plain Organization: Message-Id: <1050944761.1062.7.camel@tokyo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 21 Apr 2003 13:06:01 -0400 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/743 X-Sequence-Number: 38233 On Mon, 2003-04-21 at 11:30, scott.marlowe wrote: > 'show tables' is SQL, and can be run from a script, with the output > parsed. But "select * from pg_tables" (or the equivalent query on the information schemas) is SQL, can be run from a script, and can be parsed by a client application. > But, how do I write an app to ask such questions easily? psql -E is not > the easiest and most intuitive way to learn how to get the data into a > structure for parsing in a client side app. You're conflating two distinct issues: (1) providing an interface for CLI use by the DBA (2) providing an API for programmer use in applications. If you think the existing system catalogs are not sufficiently intuitive, then we should fix that problem properly (for example, through better documentation), not by copying some ad-hoc syntax from another RDBMS. If you think the existing CLI interface (\d etc.) is not sufficiently intuitive (which has been what a couple people in this thread have argued), I don't see what that has to do with client side applications or parsing the output. Cheers, Neil