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 1pAaEu-000746-Em for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Dec 2022 17:29:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pAaDu-0008EL-4v for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Dec 2022 17:28:14 +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 1pAaDt-0008EC-Ng for pgsql-hackers@lists.postgresql.org; Wed, 28 Dec 2022 17:28:13 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pAaDq-00012h-DP for pgsql-hackers@postgresql.org; Wed, 28 Dec 2022 17:28:12 +0000 Received: by mail-il1-x130.google.com with SMTP id g2so5292590ila.4 for ; Wed, 28 Dec 2022 09:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=eE9ctu40fLr3uOK5wbEhNFlUNgQlvI1p2PdX9x4BmoM=; b=GqVs40o43C/XhOkziD8W+7mWskThBmZJMLqC7Y5/BRRis2NE/46wV8oES1IyLkLLKa 2fZWlBgdICzKlqScDw2P4veZtefKI0f28Q4F3Bt5r9rzimJs/kSCdkwzRDxeUXa1vwEk U0nNO6gZS7cf+S0rduiKVTq+Pmxy2fIf1Tyj4a8Lhv/KpYdYERfWwKAkNj2wtRdqCgrr dGBQrpyg6aIN7rlEhA+SZ/gLvBA/y58Z3NJTjoxmBfQepyBY1FwqylyYV1UUGptQ/uBK f4yIPWUCrI6g0VZRkUxQa+pM7ecFy1zBcFXvj+FJn3gGsuHAP/jjlOBqODYAy+RCTptQ OOfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eE9ctu40fLr3uOK5wbEhNFlUNgQlvI1p2PdX9x4BmoM=; b=1PQ11Rtqxgm8ZzL0Wq12VUzHNv/kmEwrf23MDCh/JWDb+Dpe57EIg85CuBWlN7iVG0 KQq/Iaa5hppGsRfBcKYOrJ4Viv00XuqkVXzIn9V23lMMpnUoWpdOEuHPh6BCxvUyNfK2 qfcMakmXWqBbdFAa4aeI/MnaLc0PLnB7Sq1HAK/NuPUE+qLN/R4BiojR4rF9lxVQOW+q M0g4cO/JGxiKXQx4zNsl5nqXIri9ng4kmAdVGWkrUfoTm3rBTMJTTg9nJTH3GwE0fuBe x27j8PlCvN5vLYQRjzU9cVlzypZIYOac7CK54kGmqk4Po9orfTkIgjSxDdHjsObzY6wK Zuqg== X-Gm-Message-State: AFqh2kofHwE7HUB1CvtcHViBb1GGHx+XrlJmYiyU6YBcz4LYkd96jyZ5 KrnetqaoLkwMIhT9AqAGOV7YlQ== X-Google-Smtp-Source: AMrXdXsUbBnA3EVHmj1tYtqMhuhmIysL7AJLj6IuuxUtEX/Z+w6E7GPXo1QYjtvDtL1AoK6RgjJTeA== X-Received: by 2002:a92:870b:0:b0:30b:fd98:1be3 with SMTP id m11-20020a92870b000000b0030bfd981be3mr9078519ild.4.1672248489496; Wed, 28 Dec 2022 09:28:09 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m36-20020a026d24000000b00389c2fe0f9dsm5275088jac.85.2022.12.28.09.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 09:28:08 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 03347800A27; Wed, 28 Dec 2022 11:28:07 -0600 (CST) Date: Wed, 28 Dec 2022 11:28:07 -0600 From: Justin Pryzby To: Tom Lane Cc: Alexander Korotkov , Pavel Borisov , Alvaro Herrera , Steve Chavez , Kyotaro Horiguchi , nathandbossart@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Allow placeholders in ALTER ROLE w/o superuser Message-ID: <20221228172807.GZ1153@telsasoft.com> References: <3311900.1670260722@sss.pgh.pa.us> <20221227065456.GU1153@telsasoft.com> <3965704.1672124294@sss.pgh.pa.us> <20221228010655.GW1153@telsasoft.com> <254314.1672201780@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <254314.1672201780@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 27, 2022 at 11:29:40PM -0500, Tom Lane wrote: > Justin Pryzby writes: > > This fails when run more than once: > > time meson test --setup running --print test_pg_db_role_setting-running/regress > > Ah. > > > It didn't fail for you because it says: > > ./src/test/modules/test_pg_db_role_setting/Makefile > > +# disable installcheck for now > > +NO_INSTALLCHECK = 1 > > So ... exactly why is the meson infrastructure failing to honor that? > This test looks sufficiently careless about its side-effects that > I completely agree with the decision to not run it in pre-existing > installations. Failing to drop a created superuser is just one of > its risk factors --- it also leaves around pg_db_role_setting entries. Meson doesn't try to parse the Makefiles (like the MSVC scripts) but (since 3f0e786ccb) has its own implementation, which involves setting 'runningcheck': false. 096dd80f3c seems to have copied the NO_INSTALLCHECK from oat's makefile, but didn't copy "runningcheck" from oat's meson.build (but did copy its regress_args). -- Justin