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 1qNHiM-004Z1E-2E for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Jul 2023 18:52:26 +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 1qNHiK-00GYbF-01 for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Jul 2023 18:52:24 +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 1qNHiJ-00GYb6-HZ for pgsql-hackers@lists.postgresql.org; Sat, 22 Jul 2023 18:52:23 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qNHiF-001B1h-B6 for pgsql-hackers@postgresql.org; Sat, 22 Jul 2023 18:52:22 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-66767d628e2so1770997b3a.2 for ; Sat, 22 Jul 2023 11:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1690051938; x=1690656738; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=47H6Vdd/kbt/qIuhzfrnjXIbGR30TGwwZl/8TBX9+W8=; b=u7EI3zR+VK/BovXBu2ie/j4VrB7vmT6eixMpSUBgs5UXFSOBW/8czykOGiKbTPqQo9 fpUjD/eCI8Esj6IoQ+ydDwIDrNZxl/9kqydf6LGUAzZlepU9jNmufRqS5RwJuCK+q6e+ oR7VZV7ehOTokwdvshBTdDoj2oQFM6mghuTig5JMJNoe/IIlH7ftrcKFnDp+9Kcfyrkd Ik3uCKkqAdTRgo6nweLwWHd9kTVrT9cIZuf8t3SdOnzxOxr0yTUpztWTlgsa/aR+MqDB Mkmj6Eh+1puRMipuNZgjOVjvnTTBbItt1V+TqSNjxDkL9Fabuxi6jimJsODbQAH+HX6R C/JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690051938; x=1690656738; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=47H6Vdd/kbt/qIuhzfrnjXIbGR30TGwwZl/8TBX9+W8=; b=bqr4DFRDqnBFTdtowH/pPMOIM0xmjbPHVDZ++yhj9yJpdUR2FaYUtI2NR5d+KpGv20 BJV4Be0phPHmyKBeGJEa824XRimMO1kiZen8AM7YQpj+CNrIunf9jxeEXL/k93nJm3D1 K4o8sgSddVyRJtr7Se4GAWcpITY/UDqxsTbvW4T82rSH4Sf6UDDjGbIdrL0yx8cUw10t DwSQzFZQMBY86yWshePiF85QOJ5rw3Ef6CIafNABr/RckP/3wQx/PhqKJsYr3hI04OI4 n1+3Ic8KXw2eDcC9k8REgyUuB6/YhMUwUE/jtqpPySRn17pQ1wT7FDpscQ4rl5PqcDR/ cXxQ== X-Gm-Message-State: ABy/qLZnGl9w7d1okDmCWi0BBw5y7XXlqxWZ2C0Y6dgPIWMZ9hnvU1TR 4YzaBBc+I8oG7V0YxsHQ9cD7Kg== X-Google-Smtp-Source: APBJJlHEqXkL99zIOPUMnYbtaX6l4+rcM3NdmU8fJ3CKys70BnVkK32mq94MJFDhv/ncybHW0TeQBA== X-Received: by 2002:a05:6a20:1b22:b0:11f:4707:7365 with SMTP id ch34-20020a056a201b2200b0011f47077365mr3764002pzb.38.1690051937771; Sat, 22 Jul 2023 11:52:17 -0700 (PDT) Received: from [172.16.227.83] (c-98-234-53-26.hsd1.ca.comcast.net. [98.234.53.26]) by smtp.gmail.com with ESMTPSA id c1-20020a63a401000000b0055c3e8c922dsm5210133pgf.90.2023.07.22.11.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jul 2023 11:52:17 -0700 (PDT) Message-ID: <91659fe70489aa6864bd6989b07304bd8d1c7606.camel@j-davis.com> Subject: Re: Fix search_path for all maintenance commands From: Jeff Davis To: Noah Misch Cc: Nathan Bossart , "David G. Johnston" , Gurjeet Singh , pgsql-hackers@postgresql.org, Robert Haas , Greg Stark , Tom Lane Date: Sat, 22 Jul 2023 11:52:15 -0700 In-Reply-To: <20230722140438.GA50610@rfd.leadboat.com> References: <2cf41c8edeaaf7acb757095e6eceab8ae926f3da.camel@j-davis.com> <20230715211333.GB3675150@rfd.leadboat.com> <20230717175813.GA717781@nathanxps13> <2ad1dd4e5be5567c0d75676b348eab33b529e974.camel@j-davis.com> <20230722140438.GA50610@rfd.leadboat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2023-07-22 at 07:04 -0700, Noah Misch wrote: > Commit a117ceb added that, and it added some test cases that behaved > differently without that. Thank you. The reasoning there seems to apply to search_path restriction as well, so I will leave it as-is. I'll wait a few more days for comment since I made some changes (also it's the weekend), but I plan to commit something like the latest version soon. I might adjust the CREATE MATERIALIZED VIEW changes to be more minimal, but that path is not important for security (see pre-existing comment) so it's probably fine either way. Regards, Jeff Davis