Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9qHy-005T9N-Tk for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2024 18:02:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s9qHz-0026nV-0H for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2024 18:02:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9qEr-0020tz-E9 for pgsql-general@lists.postgresql.org; Wed, 22 May 2024 17:58:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9qEm-000Eoy-HL for pgsql-general@postgresql.org; Wed, 22 May 2024 17:58:56 +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 44MHwosL4178925; Wed, 22 May 2024 13:58:50 -0400 From: Tom Lane To: Ron Johnson cc: pgsql-general Subject: Re: search_path wildcard? In-reply-to: References: Comments: In-reply-to Ron Johnson message dated "Wed, 22 May 2024 13:54:21 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4178923.1716400730.1@sss.pgh.pa.us> Date: Wed, 22 May 2024 13:58:50 -0400 Message-ID: <4178924.1716400730@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > That would be a helpful feature for administrators, when there are multiple > schemas in multiple databases, on multiple servers: superusers get ALTER > ROLE foo SET SEARCH_PATH = '*'; and they're done with it. ... and they're pwned within five minutes by any user with the wits to create a trojan-horse function or operator. Generally speaking, you want admins to run with a minimal search path not a maximal one. regards, tom lane