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 1pAKuN-0007MW-Ie for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Dec 2022 01:07:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pAKuM-0001FJ-8a for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Dec 2022 01:07:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAKuL-0001F8-SH for pgsql-hackers@lists.postgresql.org; Wed, 28 Dec 2022 01:07:01 +0000 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pAKuJ-0004YF-0O for pgsql-hackers@postgresql.org; Wed, 28 Dec 2022 01:07:01 +0000 Received: by mail-il1-x12d.google.com with SMTP id d10so7616708ilc.12 for ; Tue, 27 Dec 2022 17:06:58 -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=rfuGbgtEkTZQ378eR5qm2GQhM2BO3uziMBfZZbxdMVY=; b=YZMxyGrEiZat7jmVRlDhX0DBo6lImClaHDYWLV9f5BD1pLtdEL48o/gdSqcanptlbm IglpbAqsQDl00DCGN4W594ccCJhgZZEPdmYCq3oUoCqmH7ezpkXOt6aM6RGiQwfZvrdj bbK/L9wU5eOk3eBCFeIO13hZ5fHckWU9MpN7oec12XMSacOuzEz/I+cJ7sxoEXrN+okK SYXK8hTj+I+yhfUTkF3L14Im2JGPoxwtWO3W2LPfv7K7ncn+0KiCkS24RJ41tMdF3v04 I/RFVJRh57b/qhDXYqODbpZWMCZNlF7GO8TEhULRtA3rzOL25cUCdl0xt2DV6LY69HSh FPHw== 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=rfuGbgtEkTZQ378eR5qm2GQhM2BO3uziMBfZZbxdMVY=; b=R4qxlWrNhCGJBh5YGr3t4epF6poD2uO6TAuhC/D7OEDx3FdE+lvGQmD1FMbgqg+Gzm EkJQF3TnP4kYoyf8+HoEo5mw2cJszhmg0fDwoEKJCb3aCL4X0vmklCn5yc6qUuOos0yt ZA9E9uE+FVfReA69/S5PdcyCKKBvT6TgR2kjNHkmJfNVHcdzRjpNaOuFuozTBLEdbDAm gDNbjk3aGFuzZzwaA/JBONyk48T5ty1dC5CMQcZScoY0/+pjwWuYO20x6Hxj61W2uJ9i 0XMyPV5oGB0GxcvGbWXM4XC8CqCo9PFSKAfNOtptkfEnoaVDMQaGKzV7yYqhTmQYhA3t 5ZTg== X-Gm-Message-State: AFqh2kqeuf7DJSxpzE8ebzibxNlm1/ztYKt6u7lYplCjg4x101ieqjnw ESuPVAb1+5W753bkzXDEQbtpMQ== X-Google-Smtp-Source: AMrXdXvMFJlZJyPRN/RHXjiMo88dxDZPWwE0Hy9NPIseJ+SEBHkw6+EbiuE6Wr6V2MN5gLNOSrdqEg== X-Received: by 2002:a92:ce07:0:b0:300:1cc8:7ec7 with SMTP id b7-20020a92ce07000000b003001cc87ec7mr15091735ilo.12.1672189616956; Tue, 27 Dec 2022 17:06:56 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j12-20020a056e02014c00b003029afc3672sm4611027ilr.36.2022.12.27.17.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 17:06:56 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 518CA800A27; Tue, 27 Dec 2022 19:06:55 -0600 (CST) Date: Tue, 27 Dec 2022 19:06:55 -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: <20221228010655.GW1153@telsasoft.com> References: <20221205171120.pvg6v2kdyswvzzca@alvherre.pgsql> <3311900.1670260722@sss.pgh.pa.us> <20221227065456.GU1153@telsasoft.com> <3965704.1672124294@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3965704.1672124294@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 01:58:14AM -0500, Tom Lane wrote: > Justin Pryzby writes: > > FYI: this causes meson test running ("installcheck") fail when run > > twice. I guess that's expected to work, per: > > We do indeed expect that to work ... but I don't see any problem > with repeat "make installcheck" on HEAD. Can you provide more > detail about what you're seeing? This fails when run more than once: time meson test --setup running --print test_pg_db_role_setting-running/regress @@ -1,12 +1,13 @@ CREATE EXTENSION test_pg_db_role_setting; CREATE USER regress_super_user SUPERUSER; +ERROR: role "regress_super_user" already exists CREATE USER regress_regular_user; +ERROR: role "regress_regular_user" already exists ... 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 It also says: +# and also for now force NO_LOCALE and UTF8 +ENCODING = UTF8 +NO_LOCALE = 1 which was evidently copied from the "oat" tests, which have said that since March (5b29a9f77, 7c51b7f7c). It fails the same way with "make" if you change it to not disable installcheck: EXTRA_REGRESS_OPTS="--bindir=`pwd`/tmp_install/usr/local/pgsql/bin" PGHOST=/tmp make installcheck -C src/test/modules/test_pg_db_role_setting -- Justin