On Wed, 2025-05-21 at 17:26 +0900, 노명석 wrote:
> You've raised valid concerns about hiding information (the actual NULL
> status of nspacl) and the potential for a (small) compatibility break
> if psql were to display default ACLs when nspacl is NULL. This leads
> me to think: if there's an information discrepancy when the actual
> value is NULL but the display shows the default ACL, then wouldn't
> explicitly adding the default ACL to nspacl during CREATE SCHEMA
> itself (instead of leaving it NULL by default) pose an even greater
> risk of more significant compatibility issues? I agree that this isn't
> something that can be changed easily.

The behavior is the same if there is a NULL or the explicit default
value in "nspacl".  So the information that you are missing if you
don't get to see the default value is marginal - essentially that
someone has granted or revoked privileges on that object.

The change in the "psql" output (that might surprise experienced
users) is the bigger concern in my opinion.  But it is not a very big
concern either.

> Separately, regarding my initial point in the first email about schema
> owner privileges not being included in the output of pg_dump – do you
> think it would be better to send a separate email to suggest adding an
> explanation for this to the documentation?

I think that is unnecessary.  "pg_dump" doesn't need to preserve
everything literally, as long as the behavior is not changed.

But that's just my opinion.

Yours,
Laurenz Albe


Reply via email to