pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stef <svb@ucs.co.za>
To: sandhya <sandhyar@amiindia.co.in>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: Reg: sql commands
Date: Thu, 22 Sep 2005 12:54:27 +0200
Message-ID: <20050922125427.1e60e1df@svb.ucs.co.za> (raw)
In-Reply-To: <014101c5bf61$2bb37000$cd00000a@amiindiahjwbgh>
References: <012401c5bf5a$b06b48b0$cd00000a@amiindiahjwbgh>
	<20050922120852.543390ca@svb.ucs.co.za>
	<014101c5bf61$2bb37000$cd00000a@amiindiahjwbgh>

sandhya mentioned :
=> No...What i need is...
=> I want to know the equivalent sql queries for \l and \dt commands in order
=> to list the databases and tables.
=> I want to do it through programming

From the psql man-page :
-E

--echo-hidden
       Echoes the actual queries generated by \d  and  other  backslash
       commands.  You can use this if you wish to include similar func-
       tionality into your own programs. This is equivalent to  setting
       the variable ECHO_HIDDEN from within psql.

If this is not _exactly_ what you need, then you're not exactly 
explaining what you're trying to do :)



view thread (6+ messages)

Message-ID: <20050922125427.1e60e1df@svb.ucs.co.za>
Permalink:  ../20050922125427.1e60e1df@svb.ucs.co.za/
Also on:    postgresql.org/message-id/20050922125427.1e60e1df@svb.ucs.co.za

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: svb@ucs.co.za, sandhyar@amiindia.co.in
  Subject: Re: Reg: sql commands
  In-Reply-To: <20050922125427.1e60e1df@svb.ucs.co.za>
  References: <012401c5bf5a$b06b48b0$cd00000a@amiindiahjwbgh> <20050922120852.543390ca@svb.ucs.co.za> <014101c5bf61$2bb37000$cd00000a@amiindiahjwbgh> <20050922125427.1e60e1df@svb.ucs.co.za>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox