Re: Error messages on duplicate schema names - Mailing list pgsql-general

From Michael Paquier
Subject Re: Error messages on duplicate schema names
Date
Msg-id YAEZ6D+R5tSGk08i@paquier.xyz
Whole thread Raw
In response to Error messages on duplicate schema names  (Andrus <kobruleht2@hot.ee>)
Responses Re: Error messages on duplicate schema names  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-general
On Wed, Jan 06, 2021 at 07:15:24PM +0200, Andrus wrote:
> Should duplicate schema names accepted or should their usage throw better
> error messages.

This means that we are one call of CommandCounterIncrement() short for
such queries, and similar safeguards already exist in this area for
GRANT/REVOKE.  The spot where I would put this new CCI is at the end
of SetDefaultACL(), like in the attached with a test added to
privileges.sql.

Any thoughts from others?
--
Michael

Attachment

pgsql-general by date:

Previous
From: Phil Florent
Date:
Subject: RE: Strange (and good) side effect of partitioning ?
Next
From: Phil Florent
Date:
Subject: RE: Strange (and good) side effect of partitioning ?