Re: How to list all schema names inside a PostgreSQL database through SQL - Mailing list pgsql-general

From Ondrej Ivanič
Subject Re: How to list all schema names inside a PostgreSQL database through SQL
Date
Msg-id CAM6mie+ZbkUgqWTA1nPfuvcYE0918UmtBdrrL8sxiYH9BaQQDw@mail.gmail.com
Whole thread Raw
In response to How to list all schema names inside a PostgreSQL database through SQL  (Xiaobo Gu <guxiaobo1982@gmail.com>)
Responses Re: How to list all schema names inside a PostgreSQL database through SQL  (Xiaobo Gu <guxiaobo1982@gmail.com>)
Re: How to list all schema names inside a PostgreSQL database through SQL  (Xiaobo Gu <guxiaobo1982@gmail.com>)
List pgsql-general
Hi,

On 15 November 2012 23:31, Xiaobo Gu <guxiaobo1982@gmail.com> wrote:
> How can I list  all schema names inside a PostgreSQL database through
> SQL, especially thoese without any objects created inside it.

Use -E psql's option:
  -E, --echo-hidden        display queries that internal commands generate

then you get SQL query for each internal command.

The second option is to use information_schema.schemata view (this is
works across databases)


--
Ondrej Ivanic
(http://www.linkedin.com/in/ondrejivanic)


pgsql-general by date:

Previous
From: Vlad
Date:
Subject: Re: High SYS CPU - need advise
Next
From: Merlin Moncure
Date:
Subject: Re: High SYS CPU - need advise