Re: Adjust error message to reflect the inheritance relationship

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Tender Wang <tndrwang(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Adjust error message to reflect the inheritance relationship
Date: 2026-11-25 09:40:34
Message-ID: awas4lf4XnqdjIS-@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-May-09, Tender Wang wrote:

> I want to add the word " child " to the error message to reflect the
> inheritance relationship.
> I searched the `tablecmds.c` file using the keyword "child table" and
> received a similar error message, as shown below.
>
> "column \"%s\" in child table \"%s\" must be marked NOT NULL"
>
> ”is not marked NOT NULL" works for me. So I only replaced the original
> error message "of" with "in child".
> The new error message will be:
> ERROR: column "c0" in child table "t3" is not marked NOT NULL
>
> Any thoughts?

Makes sense, pushed, no backpatch. Thanks

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
Are you not unsure you want to delete Firefox?
[Not unsure] [Not not unsure] [Cancel]
http://smylers.hates-software.com/2008/01/03/566e45b2.html

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2026-11-25 09:46:56 Re: remove unused shared WAL flush request
Previous Message Kirill Reshke 2026-11-25 09:13:24 CYCLE over calculates windows functions