Re: PG FDW query fails, works local, same credentials - Mailing list pgsql-general

From Tom Lane
Subject Re: PG FDW query fails, works local, same credentials
Date
Msg-id 305861.1693457188@sss.pgh.pa.us
Whole thread Raw
In response to PG FDW query fails, works local, same credentials  ("Pete O'Such" <posuch@gmail.com>)
Responses Re: PG FDW query fails, works local, same credentials
List pgsql-general
"Pete O'Such" <posuch@gmail.com> writes:
> I've got a view on server A (PG 15.2) that fails when queried via FDW from
> server B (also PG 15.2).  Querying it as a foreign table from server B
> yields a message like "ERROR:  function blah(type) does not exist".

Check your search path assumptions.  postgres_fdw runs remote queries
with a very minimal search_path setting, so that unqualified references
to non-built-in objects are likely to fail.

            regards, tom lane



pgsql-general by date:

Previous
From: "Pete O'Such"
Date:
Subject: PG FDW query fails, works local, same credentials
Next
From: Marc Millas
Date:
Subject: Re: event trigger clarification