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 1fk8aK-00041v-KC for pgsql-general@arkaria.postgresql.org; Mon, 30 Jul 2018 13:51:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fk8aI-0000fn-CN for pgsql-general@arkaria.postgresql.org; Mon, 30 Jul 2018 13:51:38 +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 1fk8aI-0000fg-4U for pgsql-general@lists.postgresql.org; Mon, 30 Jul 2018 13:51:38 +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 1fk8aF-0007Sf-Hs for pgsql-general@lists.postgresql.org; Mon, 30 Jul 2018 13:51:37 +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 w6UDpXcY025260; Mon, 30 Jul 2018 09:51:33 -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: References: Comments: In-reply-to Achilleas Mantzios message dated "Mon, 30 Jul 2018 15:57:02 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <25258.1532958693.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 30 Jul 2018 09:51:33 -0400 Message-ID: <25259.1532958693@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Achilleas Mantzios 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