Re: Quirk of pg_temp schemas ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Quirk of pg_temp schemas ...
Date
Msg-id 3787327.1628609435@sss.pgh.pa.us
Whole thread Raw
In response to Quirk of pg_temp schemas ...  (Greg Stark <stark@mit.edu>)
Responses Re: Quirk of pg_temp schemas ...  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> While fixing up a patch I had dealing with temporary tables I noticed
> a bit of a quirk with pg_temp schemas. Namely that we have no actual
> meta data marking them as temporary aside from their names. And we
> don't do anything to protect that -- superuser can happily issue ALTER
> SCHEMA RENAME to rename it to a name that doesn't match pg_temp*.

This seems to me to be not very different from the 1001 other ways that
a superuser can break a database.  If *non* superusers could rename
those schemas then I'd agree there's a problem to be solved.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] test/ssl: rework the sslfiles Makefile target
Next
From: Sadhuprasad Patro
Date:
Subject: Re: Support reset of Shared objects statistics in "pg_stat_reset" function