pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: andy.shellam@mailnetwork.co.uk
Cc: Christopher Browne <cbbrowne@acm.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Show tables query
Date: Sun, 2 Apr 2006 21:02:09 +0530
Message-ID: <a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com> (raw)
In-Reply-To: <20060402145326.D69E411F6AFD@postgresql.org>
References: <878xqo9m8q.fsf@wolfe.cbbrowne.com>
	<20060402145326.D69E411F6AFD@postgresql.org>

On 4/2/06, Andy Shellam <andy.shellam@mailnetwork.co.uk> wrote:
> > After takin a swig o' Arrakan spice grog, andy.shellam@mailnetwork.co.uk
> ("Andy Shellam") belched out:
> >> Is there an SQL command supported by Postgres to return a list of tables
> in a database?
>
> Sorry, did I say something wrong? I thought it was a perfectly valid
> question actually.  The application in mind is going to be run exclusively
> on Postgres,
>
> so I'm not overly fussed over standards - I just wanted a quick
> win, of which Grega's SQL gave it me perfectly - tables only, nothing else
> included.

 the information_schema approach is still better than querying
 the system catalogs. The system catalogs are internal to postgresql
 what if future  versions of postgresql change the sys catalogs dramatically ?
(your app breaks!)

 information_schema is the standard which are more likely to behave
 the same in all versions of pgsql becoz they are(currently) views on
 the sys catalogs.

 Regds
 Rajesh Kumar Mallah.


> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>



view thread (12+ messages)  latest in thread

Message-ID: <a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com>
Permalink:  ../a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com

 · 

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: mallah.rajesh@gmail.com, andy.shellam@mailnetwork.co.uk, cbbrowne@acm.org
  Subject: Re: Show tables query
  In-Reply-To: <a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com>
  References: <878xqo9m8q.fsf@wolfe.cbbrowne.com> <20060402145326.D69E411F6AFD@postgresql.org> <a97c77030604020832u23368b40r9c2637ed630c727e@mail.gmail.com>

* 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