From: Tom Lane <tgl@sss.pgh.pa.us>
To: kaido vaikla <kaido.vaikla@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall and owner of the extension
Date: Tue, 23 Jan 2024 11:13:42 -0500
Message-ID: <4046117.1706026422@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+427g-YecPcvrHLJjoP92gDQy199qvvKCj_OvXhR3qmeu0zRQ@mail.gmail.com>
References: <CA+427g-YecPcvrHLJjoP92gDQy199qvvKCj_OvXhR3qmeu0zRQ@mail.gmail.com>
kaido vaikla <kaido.vaikla@gmail.com> writes:
> So pg_dumpall is not aware who ran "CREATE EXTENSION"?
Yeah, pg_dump makes no effort to restore extensions with the same
owner. This didn't matter back when the feature was designed,
because you had to be superuser to install most interesting
extensions. I suppose we should revisit the choice sometime.
There's no ALTER EXTENSION OWNER command, though, so it would
need to be done in a different way from other object types.
Not sure offhand what the downsides of that would be.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kaido.vaikla@gmail.com
Subject: Re: pg_dumpall and owner of the extension
In-Reply-To: <4046117.1706026422@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