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: Wed, 28 Dec 2022 11:28:07 -0600
Message-ID: <20221228172807.GZ1153@telsasoft.com> (raw)
In-Reply-To: <254314.1672201780@sss.pgh.pa.us>
References: <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>
	<254314.1672201780@sss.pgh.pa.us>

On Tue, Dec 27, 2022 at 11:29:40PM -0500, Tom Lane wrote:
> Justin Pryzby <pryzby@telsasoft.com> 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





view thread (49+ messages)  latest in thread

Message-ID: <20221228172807.GZ1153@telsasoft.com>
Permalink:  ../20221228172807.GZ1153@telsasoft.com/
Also on:    postgresql.org/message-id/20221228172807.GZ1153@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: <20221228172807.GZ1153@telsasoft.com>
  References: <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> <254314.1672201780@sss.pgh.pa.us> <20221228172807.GZ1153@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