Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDDEo-0003vf-D8 for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Jul 2022 22:59:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDDEn-00087k-6J for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Jul 2022 22:59:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDDEm-00087b-UZ for pgsql-bugs@lists.postgresql.org; Sun, 17 Jul 2022 22:59:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDDEk-0004MZ-T9 for pgsql-bugs@lists.postgresql.org; Sun, 17 Jul 2022 22:59:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26HMxeko466320; Sun, 17 Jul 2022 18:59:41 -0400 From: Tom Lane 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 In-reply-to: <1322024.1652712576@sss.pgh.pa.us> References: <17483-795757fa99607659@postgresql.org> <1322024.1652712576@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 16 May 2022 10:49:36 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <466318.1658098780.1@sss.pgh.pa.us> Date: Sun, 17 Jul 2022 18:59:40 -0400 Message-ID: <466319.1658098780@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > PG Bug reporting form 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