Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDG28-0007eG-V3 for pgsql-general@arkaria.postgresql.org; Sat, 20 Feb 2021 00:22:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lDG26-0000Xg-9A for pgsql-general@arkaria.postgresql.org; Sat, 20 Feb 2021 00:22:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDG25-0000Wb-Nv for pgsql-general@lists.postgresql.org; Sat, 20 Feb 2021 00:22:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDG1z-0007Ou-Ax for pgsql-general@lists.postgresql.org; Sat, 20 Feb 2021 00:22:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 11K0LrAL3149168; Fri, 19 Feb 2021 19:21:53 -0500 From: Tom Lane To: Ken Tanzer cc: Rob Sargent , "pgsql-generallists.postgresql.org" Subject: Re: Error with pg_dump (of data), with --role In-reply-to: References: <296ae0e1-8f2c-fc11-d184-f98dba3d0cd5@gmail.com> <2996155.1613709876@sss.pgh.pa.us> <3123724.1613776930@sss.pgh.pa.us> Comments: In-reply-to Ken Tanzer message dated "Fri, 19 Feb 2021 16:02:17 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3149166.1613780513.1@sss.pgh.pa.us> Date: Fri, 19 Feb 2021 19:21:53 -0500 Message-ID: <3149167.1613780513@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ken Tanzer writes: > One thing about the search path though, regarding pg_temp. If I add a > SET search_path = public; > Do I need instead to specify "public, pg_temp" to prevent it from being > (silently) at the beginning? Yeah, that would be slightly safer. If the public schema is world-writable, though, you're in big trouble anyway ... regards, tom lane