Re: PG FDW query fails, works local, same credentials

2023-09-01 Thread Pete O'Such
> Check your search path assumptions. postgres_fdw runs remote > queries with a very minimal search_path setting, Indeed it was the search path, combined with references to user-defined functions that weren't schema-qualified. Thank you for the pointer! -Pete On Thu, Aug 31, 2023 at 12:46 AM T

Re: PG FDW query fails, works local, same credentials

2023-08-30 Thread Tom Lane
"Pete O'Such" 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

PG FDW query fails, works local, same credentials

2023-08-30 Thread Pete O'Such
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". Confusingly, I succeed when: I log into server A, set my role to match the role used