Re: libpq-how to add a schema to search path

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: libpq-how to add a schema to search path
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C20886AD46@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на libpq-how to add a schema to search path  (Divakar Singh <dpsmails@yahoo.com>)
Ответы Re: libpq-how to add a schema to search path  (Divakar Singh <dpsmails@yahoo.com>)
Список pgsql-general
Divakar Singh wrote:
> While making connection to PGSQL using libpq, is there any option to
mention the schema name?
> Something similar exists in java, however not sure about libpq.

Use the "options" connection parameter, like this:

psql "dbname=test user=laurenz port=5432 options='-c
search_path=schema1,schema2'"

Yours,
Laurenz Albe


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

Предыдущее
От:
Дата:
Сообщение: Storing large files in multiple schemas: BLOB or BYTEA
Следующее
От: Lars Helge Øverland
Дата:
Сообщение: Index only scan