Re: Error messages on duplicate schema names

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error messages on duplicate schema names
Date: 2021-01-15 04:28:24
Message-ID: YAEZ6D+R5tSGk08i@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
alter-default-duplicate.patch text/x-diff 1.9 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Phil Florent 2021-01-15 04:45:27 RE: Strange (and good) side effect of partitioning ?
Previous Message Phil Florent 2021-01-15 03:52:39 RE: Strange (and good) side effect of partitioning ?