Re: Inserting a record into another table ... inside a

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Inserting a record into another table ... inside a
Дата
Msg-id Pine.LNX.4.61.0505050826230.4693@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Inserting a record into another table ... inside a schema  (John DeSoi <desoi@pgedit.com>)
Ответы Re: Inserting a record into another table ... inside a  (John DeSoi <desoi@pgedit.com>)
Список pgsql-general
On Thu, 5 May 2005, John DeSoi wrote:

>> However when I update the base table in schema MySchema the trigger
>> tries to insert/update a record in the public schema and not the Current
>> schema (ie the schema of the original table). Is there a system variable
>> for Current Schema ? &. If not what is the best way to achieve this ?
>
> You want search_path -- see

   Pardon my ignorance, but why wouldn't it work to specify the schema with
the table; e.g., update myschema.table1?

Rich

--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>   Voice: 503-667-4517   Fax: 503-667-8863

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgres, tablespaces, and quotas
Следующее
От: "A. Mous"
Дата:
Сообщение: Postmaster not reporting number of connections correctly