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: Mon, 30 Jul 2018 09:51:33 -0400
Message-ID: <25259.1532958693@sss.pgh.pa.us> (raw)
In-Reply-To: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com>
References: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com>
Achilleas Mantzios <achill@matrix.gatewaynet.com> writes:
> This is with PostgreSQL 10.4.
> How to reproduce :
> dynacom=# ALTER ROLE amura3 SET search_path TO "$user", amuragents, public;
> ALTER ROLE
> ...
> dynacom=> show search_path ;
> search_path
> ---------------------------
> $user, amuragents, public
> (1 row)
Hm, that's not happening for me:
regression=# alter user joe set search_path to "$user", public;
...
regression=> show search_path ;
search_path
-----------------
"$user", public
(1 row)
and then pg_dumpall produces
ALTER ROLE joe SET search_path TO "$user", public;
There was a relevant bug fix in March (commit 742869946) ...
are you certain this is a 10.4 server, and not 10.3 or older?
regards, tom lane
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: <25259.1532958693@sss.pgh.pa.us>
References: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com> <25259.1532958693@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