pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: 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 16:54:24 +0300
Message-ID: <3632eeb3-d655-606c-ce31-c3035043a5b1@matrix.gatewaynet.com> (raw)
In-Reply-To: <25259.1532958693@sss.pgh.pa.us>
References: <b834e08c-fa94-5823-932e-2073ea805e98@matrix.gatewaynet.com>
	<25259.1532958693@sss.pgh.pa.us>

On 30/07/2018 16:51, Tom Lane wrote:
> 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:
You (and Adrian) are right. This is due to our own tweaking (which I had forgotten). Sorry for the false alarm.
>
> 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
>

-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt





view thread (8+ messages)  latest in thread

Message-ID: <3632eeb3-d655-606c-ce31-c3035043a5b1@matrix.gatewaynet.com>
Permalink:  ../3632eeb3-d655-606c-ce31-c3035043a5b1@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/3632eeb3-d655-606c-ce31-c3035043a5b1@matrix.gatewaynet.com

 · 

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: 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: <3632eeb3-d655-606c-ce31-c3035043a5b1@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>

* 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