Re: Dealing with schema in psql utility?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Dealing with schema in psql utility?
Дата
Msg-id 9627.1045801413@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Dealing with schema in psql utility?  (Tariq Muhammad <tmuhamma@libertyrms.com>)
Список pgsql-general
Tariq Muhammad <tmuhamma@libertyrms.com> writes:
> On Thu, 20 Feb 2003, Dan Delaney wrote:
>> 1) get a list of the schema that have been created in the current
>> database

> select * from pg_namespace ;

7.4 psql will also offer "\dn".  We didn't get around to making this
happen for 7.3.

>> 2) View the list of tables in a schema other than "public"?

Try "\dt myschema.*"

>> 3) Rename a schema (is there an "alter schema" statement)?

On the to-do list, but not done yet.  As Tariq says, an ALTER command
will serve for the moment.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: John DeSoi
Дата:
Сообщение: cursors and column names
Следующее
От: Deepa
Дата:
Сообщение: Re: Creating index does not make any change in query plan.