Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fksnp-00073Y-KX for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 15:12:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fksnn-0001Xh-71 for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 15:12:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fksnm-0001XZ-VK for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 15:12:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fksng-0000Gb-4P for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 15:12:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w71FCRFO023096; Wed, 1 Aug 2018 11:12:27 -0400 From: Tom Lane To: Achilleas Mantzios cc: pgsql-general@lists.postgresql.org Subject: Re: ALTER ROLE SET search_path produced by pg_dumpall gives : ERROR: syntax error at or near "$" . In-reply-to: <44a9ab3c-8bde-6a27-cd99-1f2889288a6d@matrix.gatewaynet.com> References: <25259.1532958693@sss.pgh.pa.us> <3632eeb3-d655-606c-ce31-c3035043a5b1@matrix.gatewaynet.com> <25764.1532959236@sss.pgh.pa.us> <44a9ab3c-8bde-6a27-cd99-1f2889288a6d@matrix.gatewaynet.com> Comments: In-reply-to Achilleas Mantzios message dated "Wed, 01 Aug 2018 17:56:04 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <23094.1533136347.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Aug 2018 11:12:27 -0400 Message-ID: <23095.1533136347@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Achilleas Mantzios writes: > On 30/07/2018 17:00, Tom Lane wrote: >> It looks like your hack was to work around the bug that was fixed >> properly in 742869946. You should be able to undo that now ... > On pgsql 10.4 , I reverted (undid) this patch/hack : > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GUC_LIST_INPU= T | GUC_LIST_QUOTE > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GUC_LIST_INPU= T | GUC_REPORT What I meant was you should be able to undo the removal of GUC_LIST_QUOTE. The other change is independent, and it seems to be about working around a bug in pgbouncer. You ought to discuss that with the pgbouncer folk. > I tested with : > GUC_LIST_INPUT | GUC_LIST_QUOTE | GUC_REPORT > as well, but then I get the re-quote problem I was telling about : > At first connection the search path is set correctly : bdynacom,epaybdyn= acom,epay,"$user", public > but after server disconnection and re-connection the search path becomes= : "bdynacom,epaybdynacom,epay,""$user"", public" > which is wrong. This seems like it might be a bug in pgbouncer as well; or at least an oversight, in that it's not expecting any GUC_REPORT parameters to need GUC_LIST_QUOTE treatment. regards, tom lane