Search Postgresql Archives

Re: Looking for a command to list schemas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 26, 2005 at 03:35:31PM +0200, Andreas Kretschmer wrote:
> Cosmopo <tempo@xxxxxxxxxx> schrieb:
> > It seems that once we created the schema and created a table with this
> > schema, if we forget about it, the is no way to list the schema or to
> > have the tables/sequence with it's associated schema...
> > 
> > Can someone tell us how we can get this important info?
> 
> \dn in psql list all schemas.

The poster mentioned 7.3.4 -- that version's psql didn't have \dn,
so using it results in the following error:

test=> \dn
Did not find any relation named "n".

You can get the list of schemas by querying the system catalogs:

SELECT * FROM pg_namespace;

-- 
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux