Skip site navigation (1) Skip section navigation (2)

Listing Schemas - Revisited

From: Chris Campbell <ccampbell(at)cascadeds(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Listing Schemas - Revisited
Date: 2010-08-10 17:42:16
Message-ID: 453A24085F801842AEA8D0B6B269065D2FECF166C8@HDMC.cds.local (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Hi, a while back I saw a thread about how to list schemas.  The solution presented was:
Select * FROM pg_namespace

That's great except the results include non schema data and no real way (that I can tell) to differentiate the actual schemas from the other data.  In addition, I need to include the schema comments.  So to summarize my particular need:  I need to issue a select statement that returns "Schema Name" and "Comments" for the given database.


Chris Campbell
Cascade Data Solutions, Inc.


pgsql-novice by date

Next:From: Mladen GogalaDate: 2010-08-10 20:16:36
Subject: Installation problem (RH5, x86-64, Postgresql 8.4.4)
Previous:From: Bruce MomjianDate: 2010-08-10 15:00:00
Subject: Re: How to remove quotes from COPY TO result?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group