Re: Calling stored procredure from psycopg2

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема Re: Calling stored procredure from psycopg2
Дата
Msg-id 20180123175427.24yqbh4eh7xgv4ul@campbell-lange.net
обсуждение исходный текст
Ответ на Re: Calling stored procredure from psycopg2  (Graeme Gemmill <graeme@gemmill.name>)
Ответы Re: Calling stored procredure from psycopg2  (Graeme <graeme@gemmill.name>)
Список psycopg
On 23/01/18, Graeme Gemmill (graeme@gemmill.name) wrote:
> Daniele: What would be the 'search_path'? 

Each database can have several schemas. To access schemas outside of the
default 'public' schema, you need to set the search_path.

https://www.postgresql.org/docs/current/static/runtime-config-client.html

If you are trying to use functions or data outside of the public schema
you can normally do so by either running something like

    dbcur.execute('set search_path = %s' % self.search_path)

or fully qualify the target function or object in your query, eg:

    select * from myschema.fn_myfunction(myschema.toys)

Rory


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

Предыдущее
От: Ed Behn
Дата:
Сообщение: Re: Calling stored procredure from psycopg2
Следующее
От: Graeme
Дата:
Сообщение: Re: Calling stored procredure from psycopg2