Re: psql "SCHEMA" switch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql "SCHEMA" switch
Дата
Msg-id 6459.1166846317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql "SCHEMA" switch  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-general
Michael Glaesemann <grzm@seespotcode.net> writes:
> On Dec 22, 2006, at 15:15 , Paul Silveira wrote:
>> Because psql does not have a schema switch, I had to do it this way...

> As the schema is part of the DDL, I think it's better to have it as
> part of DDL script rather than a switch for psql, either as schema-
> qualified tables in the script or using a SET search_path command in
> the SQL script.

Besides, you can get the effect already via PGOPTIONS:

PGOPTIONS="--search_path=myschema,yourschema" psql ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with index in OR'd expression
Следующее
От:
Дата:
Сообщение: Clustering & Load Balancing & Replication