From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: Nagaraj Raj <nagaraj.sf@yahoo.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition
Date: Tue, 29 Sep 2020 18:43:38 -0400
Message-ID: <725317.1601419418@sss.pgh.pa.us> (raw)
In-Reply-To: <20200929223907.GA14950@alvherre.pgsql>
References: <20200929223907.GA14950@alvherre.pgsql>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2020-Sep-29, Tom Lane wrote:
>> Meh. If you've read that bit you probably already understand that
>> pkeys are unique constraints. I think the problem is with the error
>> text not the docs.
> Maybe mention PKs in parens:
> "Unique constraints (and[, by extension,] primary key constraints) on
> partitioned tables must include all the partition key columns. This
> limitation exists because PostgreSQL can only enforce uniqueness in each
> partition individually.".
I don't object to clarifying that (and that wording seems fine), but I
think fixing the error message is more important. We'd not be having this
discussion if the OP had found that documentation.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, dgrowleyml@gmail.com, nagaraj.sf@yahoo.com
Subject: Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition
In-Reply-To: <725317.1601419418@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox