pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hannu Krosing <hannuk@google.com>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Andres Freund <andres@anarazel.de>
Cc: Noah Misch <nmisch@google.com>
Subject: Re: DROP OWNED BY fails to clean out pg_init_privs grants
Date: Thu, 20 Jun 2024 14:25:29 -0400
Message-ID: <456713.1718907929@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMT0RQTNUT8kdM9VMuJFR3qSpk6bo_PV8a994_9ysU0A4wH8dw@mail.gmail.com>
References: <1745535.1712358659@sss.pgh.pa.us>
	<78CCD91B-99DC-4B0F-B65E-AD46E67CBC0B@yesql.se>
	<2857513.1713733688@sss.pgh.pa.us>
	<F27F3F6F-A052-4EEF-9A11-3D10A867843F@yesql.se>
	<32556.1714165429@sss.pgh.pa.us>
	<378162.1714257933@sss.pgh.pa.us>
	<772627.1714330360@sss.pgh.pa.us>
	<33E80863-5516-45A1-93D1-00F1A166EC7C@yesql.se>
	<1372432.1714418108@sss.pgh.pa.us>
	<CAKFQuwajB+mm5zK9JGzqoGdZmm+1D5PWoqcd83Rs2g3Dn9b9=g@mail.gmail.com>
	<1562011.1714450202@sss.pgh.pa.us>
	<CAKFQuwYyhx01CMxmtupuMGiRwQbWTsDrDc2S88W4woaW3P=NyQ@mail.gmail.com>
	<CAMT0RQSVgv48G5GArUvOVhottWqZLrvC5wBzBa4HrUdXe9VRXw@mail.gmail.com>
	<537173.1716505303@sss.pgh.pa.us>
	<C253EA83-0133-4336-B993-F52762BF6624@yesql.se>
	<651419.1716560400@sss.pgh.pa.us>
	<40B07EAD-E25E-45EF-8728-5F371A425F3C@yesql.se>
	<663760.1716566350@sss.pgh.pa.us>
	<CA+TgmobS0gjkiOwDB_6zTWenKPTqiBC=K4rxV1LPYFD_k6y3qQ@mail.gmail.com>
	<685269.1716577052@sss.pgh.pa.us>
	<CA+TgmoZoDNyC3ZLvyOkUbgtofe64m6UZFiNOhxAppOeq-g=oPQ@mail.gmail.com>
	<2597398.171840! 8781@sss.pgh.pa.us>
	<257E8269-AD8D-48E8-8F6C-714F1387A5AD@yesql.se>
	<3178658.1718636216@sss.pgh.pa.us>
	<89CB8F54-C188-46F0-8223-8B834838327B@yesql.se>
	<CAMT0RQRiOJD=1-poF0+2dJGnh-W7pVCjoqczSMChdnUTnuvZ-A@mail.gmail.com>
	<353165.1718897713@sss.pgh.pa.us>
	<CAMT0RQRv6pCniBu5VU0r5=P7gVS7kb5KywfUH5GcKzEVwt4umQ@mail.gmail.com>
	<CAMT0RQTNUT8kdM9VMuJFR3qSpk6bo_PV8a994_9ysU0A4wH8dw@mail.gmail.com>

Hannu Krosing <hannuk@google.com> writes:
> Or perhaps we should still also patch pg_dump to ignore the aclentries
> which refer to roles that do not exist in the database ?

I didn't want to do that before, and I still don't.  Given that this
issue has existed since pg_init_privs was invented (9.6) without
prior reports, I don't think it's a big enough problem in practice
to be worth taking extraordinary actions for.

			regards, tom lane





view thread (53+ messages)  latest in thread

Message-ID: <456713.1718907929@sss.pgh.pa.us>
Permalink:  ../456713.1718907929@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/456713.1718907929@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, hannuk@google.com, daniel@yesql.se, robertmhaas@gmail.com, david.g.johnston@gmail.com, sfrost@snowman.net, andres@anarazel.de, nmisch@google.com
  Subject: Re: DROP OWNED BY fails to clean out pg_init_privs grants
  In-Reply-To: <456713.1718907929@sss.pgh.pa.us>
  References: <1745535.1712358659@sss.pgh.pa.us> <1562011.1714450202@sss.pgh.pa.us> <CAKFQuwYyhx01CMxmtupuMGiRwQbWTsDrDc2S88W4woaW3P=NyQ@mail.gmail.com> <CAMT0RQSVgv48G5GArUvOVhottWqZLrvC5wBzBa4HrUdXe9VRXw@mail.gmail.com> <537173.1716505303@sss.pgh.pa.us> <C253EA83-0133-4336-B993-F52762BF6624@yesql.se> <651419.1716560400@sss.pgh.pa.us> <40B07EAD-E25E-45EF-8728-5F371A425F3C@yesql.se> <663760.1716566350@sss.pgh.pa.us> <CA+TgmobS0gjkiOwDB_6zTWenKPTqiBC=K4rxV1LPYFD_k6y3qQ@mail.gmail.com> <685269.1716577052@sss.pgh.pa.us> <CA+TgmoZoDNyC3ZLvyOkUbgtofe64m6UZFiNOhxAppOeq-g=oPQ@mail.gmail.com> <257E8269-AD8D-48E8-8F6C-714F1387A5AD@yesql.se> <3178658.1718636216@sss.pgh.pa.us> <89CB8F54-C188-46F0-8223-8B834838327B@yesql.se> <CAMT0RQRiOJD=1-poF0+2dJGnh-W7pVCjoqczSMChdnUTnuvZ-A@mail.gmail.com> <353165.1718897713@sss.pgh.pa.us> <CAMT0RQRv6pCniBu5VU0r5=P7gVS7kb5KywfUH5GcKzEVwt4umQ@mail.gmail.com> <CAMT0RQTNUT8kdM9VMuJFR3qSpk6bo_PV8a994_9ysU0A4wH8dw@mail.gmail.com> <456713.1718907929@sss.pgh.pa.us>

* 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