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

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inserting a record into another table ... inside a
Date: 2005-05-05 15:27:50
Message-ID: Pine.LNX.4.61.0505050826230.4693@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Mous 2005-05-05 16:56:35 Postmaster not reporting number of connections correctly
Previous Message Tom Lane 2005-05-05 15:10:06 Re: Postgres, tablespaces, and quotas