Re: Listing views

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Olivier Guilyardi <ml(at)xung(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Listing views
Date: 2004-08-10 12:55:41
Message-ID: 87u0vbgnjm.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Olivier Guilyardi <ml(at)xung(dot)org> writes:

> "n" is here an alias for the pg_namespace table, which does not exist
> in 7.2, since schemas where introduced with 7.3...
>
> Am I wrong or is this a backward compatibility issue that forbids
> listing views/tables/whatever with an identical SQL query on 7.2 and 7.4 ?

System catalog layouts have never been guaranteed for backward
compatibility. Going forward, the stable way to find out about your
tables is the SQL_standard "information_schema" which first appeared in
7.4 IIRC. This doesn't help you with 7.2 though--you'll have to
handle it specially. :(

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rodríguez Rodríguez, Pere 2004-08-10 12:56:46 Re: nested transaction
Previous Message Olivier Guilyardi 2004-08-10 12:35:47 Re: Listing views