Re: libpq-how to add a schema to search path - Mailing list pgsql-general

From Albe Laurenz
Subject Re: libpq-how to add a schema to search path
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20886AD46@exadv11.host.magwien.gv.at
Whole thread Raw
In response to libpq-how to add a schema to search path  (Divakar Singh <dpsmails@yahoo.com>)
Responses Re: libpq-how to add a schema to search path  (Divakar Singh <dpsmails@yahoo.com>)
List 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 by date:

Previous
From:
Date:
Subject: Storing large files in multiple schemas: BLOB or BYTEA
Next
From: Lars Helge Øverland
Date:
Subject: Index only scan