pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Steve Chavez <steve@supabase.io>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: nathandbossart@gmail.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: Allow placeholders in ALTER ROLE w/o superuser
Date: Tue, 27 Dec 2022 19:06:55 -0600
Message-ID: <20221228010655.GW1153@telsasoft.com> (raw)
In-Reply-To: <3965704.1672124294@sss.pgh.pa.us>
References: <20221205171120.pvg6v2kdyswvzzca@alvherre.pgsql>
	<3311900.1670260722@sss.pgh.pa.us>
	<CAPpHfdu+6eNT1m_LTH52Q4teqogLPLDj-CmwXC8t7nf32ree-g@mail.gmail.com>
	<CAPpHfdsvoJ5xV-azUkXcgOav_x6Y5_B=B9MfM0mafESswuKvAA@mail.gmail.com>
	<CALT9ZEGYOQBuN36yz6BYUaqk6ddLL-xLZaO7KiyRzEskJ6BeOA@mail.gmail.com>
	<CAPpHfdtSKAOx3EuSTSzFouFjOhAijNpCptK-JOs1XM_kJSB4gQ@mail.gmail.com>
	<CAPpHfdsZtFQO7uFecmvM1umaAAuCRxHV-eskkV=zgmM8LL-Jiw@mail.gmail.com>
	<20221227065456.GU1153@telsasoft.com>
	<3965704.1672124294@sss.pgh.pa.us>

On Tue, Dec 27, 2022 at 01:58:14AM -0500, Tom Lane wrote:
> Justin Pryzby <pryzby@telsasoft.com> 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





view thread (49+ messages)  latest in thread

Message-ID: <20221228010655.GW1153@telsasoft.com>
Permalink:  ../20221228010655.GW1153@telsasoft.com/
Also on:    postgresql.org/message-id/20221228010655.GW1153@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, tgl@sss.pgh.pa.us, aekorotkov@gmail.com, pashkin.elfe@gmail.com, alvherre@alvh.no-ip.org, steve@supabase.io, horikyota.ntt@gmail.com, nathandbossart@gmail.com
  Subject: Re: Allow placeholders in ALTER ROLE w/o superuser
  In-Reply-To: <20221228010655.GW1153@telsasoft.com>
  References: <20221205171120.pvg6v2kdyswvzzca@alvherre.pgsql> <3311900.1670260722@sss.pgh.pa.us> <CAPpHfdu+6eNT1m_LTH52Q4teqogLPLDj-CmwXC8t7nf32ree-g@mail.gmail.com> <CAPpHfdsvoJ5xV-azUkXcgOav_x6Y5_B=B9MfM0mafESswuKvAA@mail.gmail.com> <CALT9ZEGYOQBuN36yz6BYUaqk6ddLL-xLZaO7KiyRzEskJ6BeOA@mail.gmail.com> <CAPpHfdtSKAOx3EuSTSzFouFjOhAijNpCptK-JOs1XM_kJSB4gQ@mail.gmail.com> <CAPpHfdsZtFQO7uFecmvM1umaAAuCRxHV-eskkV=zgmM8LL-Jiw@mail.gmail.com> <20221227065456.GU1153@telsasoft.com> <3965704.1672124294@sss.pgh.pa.us> <20221228010655.GW1153@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox