dbTalk Databases Forums  

schemas

comp.databases.postgresql comp.databases.postgresql


Discuss schemas in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mladen Gogala
 
Posts: n/a

Default schemas - 08-05-2010 , 05:40 PM






How can I see all the schemas in a Postgres database? There is, of course,
"select distinct schema from pg_tables" but what if the schema contains
no tables? There is no pg_schemas table.



--
http://mgogala.byethost5.com

Reply With Quote
  #2  
Old   
Thomas Kellerer
 
Posts: n/a

Default Re: schemas - 08-05-2010 , 05:53 PM






Mladen Gogala wrote on 06.08.2010 00:40:
Quote:
How can I see all the schemas in a Postgres database? There is, of course,
"select distinct schema from pg_tables" but what if the schema contains
no tables? There is no pg_schemas table.
http://www.postgresql.org/docs/curre...-schemata.html
http://www.postgresql.org/docs/curre...namespace.html

Reply With Quote
  #3  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: schemas - 08-05-2010 , 08:14 PM



On Fri, 06 Aug 2010 00:53:25 +0200, Thomas Kellerer wrote:

Quote:
Mladen Gogala wrote on 06.08.2010 00:40:
How can I see all the schemas in a Postgres database? There is, of
course, "select distinct schema from pg_tables" but what if the schema
contains no tables? There is no pg_schemas table.

http://www.postgresql.org/docs/curre...-schemata.html
http://www.postgresql.org/docs/curre...namespace.html
Thanks, Thomas.



--
http://mgogala.byethost5.com

Reply With Quote
  #4  
Old   
Anselmo Canfora
 
Posts: n/a

Default Re: schemas - 08-06-2010 , 03:36 AM



From psql:

\dn

Il 06/08/2010 0.40, Mladen Gogala ha scritto:
Quote:
How can I see all the schemas in a Postgres database? There is, of course,
"select distinct schema from pg_tables" but what if the schema contains
no tables? There is no pg_schemas table.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.