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

Поиск
Список
Период
Сортировка
От Divakar Singh
Тема Re: libpq-how to add a schema to search path
Дата
Msg-id 1349882924.34899.YahooMailClassic@web160605.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: libpq-how to add a schema to search path  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
Hi Laurenz,
Thanks for quick reply.
I hope it will help. Will check and revert.

Best Regards,
dpsmails


--- On Wed, 10/10/12, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:

From: Albe Laurenz <laurenz.albe@wien.gv.at>
Subject: RE: [GENERAL] libpq-how to add a schema to search path
To: "Divakar Singh *EXTERN*" <dpsmails@yahoo.com>, pgsql-general@postgresql.org
Date: Wednesday, October 10, 2012, 4:01 PM

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 по дате отправления:

Предыдущее
От: Seref Arikan
Дата:
Сообщение: Re: Re: Suggestions for the best strategy to emulate returning multiple sets of results
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade not detecting version properly