Re: postgres_fdw error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam FUCHS <atman(at)berkeley(dot)edu>
Cc: Korry Douglas <korry(dot)douglas(at)enterprisedb(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres_fdw error
Date: 2015-08-14 21:38:49
Message-ID: 13868.1439588329@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Adam FUCHS <atman(at)berkeley(dot)edu> writes:
> Thanks Korry, how would I check the search_path that is being used by the
> FDW user?

postgres_fdw always does "SET search_path = pg_catalog" when opening the
connection. Probably this needs to be documented, since it's user-visible
if you try to attach a foreign table to a remote view.

Anyway the short answer is that you should fully schema-qualify references
in functions used by such a view, or else attach "SET search_path" options
to the functions.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Adam FUCHS 2015-08-14 22:39:34 Re: postgres_fdw error
Previous Message Adam FUCHS 2015-08-14 21:19:21 Re: postgres_fdw error