Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f26Etgx90885; Tue, 6 Mar 2001 09:55:42 -0500 (EST) (envelope-from zakkr@zf.jcu.cz) Received: (from zakkr@localhost) by ara.zf.jcu.cz (8.9.3/8.9.3/Debian 8.9.3-21) id PAA01614; Tue, 6 Mar 2001 15:55:23 +0100 Date: Tue, 6 Mar 2001 15:55:22 +0100 From: Karel Zak To: Boulat Khakimov Cc: Tom Lane , pgsql-sql@postgresql.org, pgsql-general@postgresql.org Subject: Re: MySQLs Describe emulator! Message-ID: <20010306155522.B13152@ara.zf.jcu.cz> References: <3AA44897.121D60F0@inet-interactif.com> <3764.983846777@sss.pgh.pa.us> <3AA4F0DE.D96BA904@inet-interactif.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <3AA4F0DE.D96BA904@inet-interactif.com>; from boulat@inet-interactif.com on Tue, Mar 06, 2001 at 09:14:54AM -0500 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id f26Eth090894 X-Archive-Number: 200103/246 X-Sequence-Number: 5724 On Tue, Mar 06, 2001 at 09:14:54AM -0500, Boulat Khakimov wrote: > Tom Lane wrote: > > > > Boulat Khakimov writes: > > > Here is a nifty query I came up with > > > that provides a detailed information on any row of any table. > > > Something that is build into mySQL (DESC tablename fieldname) > > > but not into PG. > > > > Er, what's wrong with psql's "\d table" ? > > 2) as a programmer I need to be able to find out as much info as > possible about any given field > which is what "describe" for in mySQL. As a programmer you can see psql source and directly found how SQL query execute this tool. The PostgreSQL needn't non-standard statements like MySQL's SHOW, DESC -- the postgreSQL has system catalogs. Karel -- Karel Zak http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz