From: | Noah Misch <noah(at)leadboat(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas |
Date: | 2021-12-17 18:25:18 |
Message-ID: | 20211217182518.GA2529654@rfd.leadboat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Fri, Dec 17, 2021 at 12:52:39PM -0500, Tom Lane wrote:
> Noah Misch <noah(at)leadboat(dot)com> writes:
> > Revoke PUBLIC CREATE from public schema, now owned by pg_database_owner.
>
> I've just stumbled across a testing problem created by this commit:
> if you try to skip the tablespace test, the rest of the run falls
> over, because this bit doesn't get executed:
>
> -- Rest of this suite can use the public schema freely.
> GRANT ALL ON SCHEMA public TO public;
>
> Skipping the tablespace test is something I've been accustomed to do
> when testing replication with the standby on the same machine as the
> primary, because otherwise you've got to fool with keeping the
> standby from overwriting the primary's tablespaces. This hack made
> that a lot more painful.
>
> I'm inclined to think the cleanest fix is to move this step into a
> new script, say "test_setup.sql", that is scheduled by itself just
> after tablespace.sql.
I like that solution for your use case.
> It's sort of annoying to fire up a psql+backend
> for just one command, but perhaps there's other stuff that could be
> put there too.
Yes. The src/test/regress suite would be in a better place if one could run
most test files via a schedule containing only two files, the setup file and
the file of interest. Adding things like the "CREATE TABLE tenk1" to the
setup file would help that.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-12-17 18:41:00 | Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas |
Previous Message | Tom Lane | 2021-12-17 17:52:39 | Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2021-12-17 18:27:50 | Re: WIP: WAL prefetch (another approach) |
Previous Message | Tom Lane | 2021-12-17 17:52:39 | Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas |