pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ALTER ROLE SET search_path produced by pg_dumpall gives : ERROR: syntax error at or near "$" .
Date: Wed, 01 Aug 2018 11:12:27 -0400
Message-ID: <23095.1533136347@sss.pgh.pa.us> (raw)
In-Reply-To: <44a9ab3c-8bde-6a27-cd99-1f2889288a6d@matrix.gatewaynet.com>
References: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com>
	<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>

Achilleas Mantzios <achill@matrix.gatewaynet.com> 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 :

> -                       GUC_LIST_INPUT | GUC_LIST_QUOTE
> +                       GUC_LIST_INPUT | 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,epaybdynacom,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




view thread (8+ messages)

Message-ID: <23095.1533136347@sss.pgh.pa.us>
Permalink:  ../23095.1533136347@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23095.1533136347@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, achill@matrix.gatewaynet.com
  Subject: Re: ALTER ROLE SET search_path produced by pg_dumpall gives : ERROR: syntax error at or near "$" .
  In-Reply-To: <23095.1533136347@sss.pgh.pa.us>
  References: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com> <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> <23095.1533136347@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