pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: equincerot@yahoo.fr
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17483: postgres_fdw used with text to_tsvector and custom search configuration
Date: Sun, 17 Jul 2022 18:59:40 -0400
Message-ID: <466319.1658098780@sss.pgh.pa.us> (raw)
In-Reply-To: <1322024.1652712576@sss.pgh.pa.us>
References: <17483-795757fa99607659@postgresql.org>
	<1322024.1652712576@sss.pgh.pa.us>

I wrote:
> PG Bug reporting form <noreply@postgresql.org> writes:
>> I have an issue with the evaluation of to_tsvector and custom search
>> configuration through foreign data wrapper (from PG to PG).

> The other thing you're running into is that if the text search
> config isn't defined in the pg_catalog schema, it's not visible
> in the restricted search path that the remote session will use.
> The query shipped to the far end should handle that by writing
> "'public.custom_search'::regconfig", but it evidently doesn't ---
> that feels like a bug, indeed.

FYI, I've now pushed a fix for that problem; it'll be in the
August minor releases.

Also, beginning in v16, it'll be necessary to ensure that any
custom TS configuration you want to use this way belongs to
an extension that the foreign server considers "shippable"
(see postgres_fdw documentation).  We won't enforce that in
existing branches, though.

			regards, tom lane





view thread (3+ messages)

Message-ID: <466319.1658098780@sss.pgh.pa.us>
Permalink:  ../466319.1658098780@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/466319.1658098780@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, equincerot@yahoo.fr, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17483: postgres_fdw used with text to_tsvector and custom search configuration
  In-Reply-To: <466319.1658098780@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox