From: | "Andy Shellam" <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk> |
---|---|
To: | "'Rajesh Kumar Mallah'" <mallah(dot)rajesh(at)gmail(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Show tables query |
Date: | 2006-04-02 15:40:40 |
Message-ID: | 20060402154057.453A411F602F@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Thanks Rajesh,
That's always a risk anyway with anything - hence where upgrade testing
comes in ;-)
I'll probably go this way if I do indeed have this need still - it was only
a preliminary thought process, I just thought I'd ask the question.
Thanks
Andy
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Rajesh Kumar Mallah
Sent: Sunday, 02 April, 2006 4:32 pm
To: andy(dot)shellam(at)mailnetwork(dot)co(dot)uk
Cc: Christopher Browne; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Show tables query
On 4/2/06, Andy Shellam <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk> wrote:
> > After takin a swig o' Arrakan spice grog, andy(dot)shellam(at)mailnetwork(dot)co(dot)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
>
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
!DSPAM:14,442feeb335041315618668!
From | Date | Subject | |
---|---|---|---|
Next Message | Rajesh Kumar Mallah | 2006-04-02 16:14:58 | Re: FW: Setting up of PITR system. |
Previous Message | Rajesh Kumar Mallah | 2006-04-02 15:32:09 | Re: Show tables query |