agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Bruce Momjian <bruce@momjian.us>
To: kacperkuras@hotmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: E.6.3.2.1. Constraints
Date: Tue, 22 Sep 2026 07:51:15 +0200
Message-ID: <f1828bd03077c2cbde82acc220925cfa968aad4e.camel@cybertec.at> (raw)
In-Reply-To: <arGAwYKNjCQGpHUh@momjian.us>
References: <178982939588.1243.6087398342138761960@wrigleys.postgresql.org>
	<arGAwYKNjCQGpHUh@momjian.us>

On Mon, 2026-09-21 at 15:08 -0400, Bruce Momjian wrote:
> On Sat, Sep 19, 2026 at 02:49:55PM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> > 
> > Page: https://www.postgresql.org/docs/18/release-18.html
> > Description:
> > 
> > Commit 086c84b23 changed what a foreign key with ON DELETE RESTRICT or ON
> > UPDATE RESTRICT raises when it refuses a change: SQLSTATE 23001
> > (restrict_violation) instead of 23503 (foreign_key_violation), and the
> > message now says "violates RESTRICT setting of foreign key constraint". The
> > PostgreSQL 18 release notes do not mention it.
> > 
> > Code that catches 23503 to report that a row is still referenced stops
> > matching RESTRICT keys after upgrading, while NO ACTION keys still raise
> > 23503. The same notes list the change to the XML error codes (cd838e200), so
> > this one seems to belong there as well.
> 
> How do we want to handle such cases in the release notes?  The new codes
> are not mentioned in the commit message, and there are no doc changes in the
> patch.

In my opinion, that should have a place in the "migration to v19" section of
incompatibilities in the release notes.

I have no right to burden committers even more, but I'd say that such changes
should be part of the commit message.

Yours,
Laurenz Albe





view thread (5+ messages)  latest in thread

Message-ID: <f1828bd03077c2cbde82acc220925cfa968aad4e.camel@cybertec.at>
Permalink:  ../f1828bd03077c2cbde82acc220925cfa968aad4e.camel@cybertec.at/
Also on:    postgresql.org/message-id/f1828bd03077c2cbde82acc220925cfa968aad4e.camel@cybertec.at

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: laurenz.albe@cybertec.at, bruce@momjian.us, kacperkuras@hotmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: E.6.3.2.1. Constraints
  In-Reply-To: <f1828bd03077c2cbde82acc220925cfa968aad4e.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox