From: Tom Lane <tgl@sss.pgh.pa.us>
To: joel.traf@magwerks.com
Cc: Vitaly Burovoy <vitaly.burovoy@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: bug error message constraint "con_item_id_costelement" for table "costs" does not exist SQL state: 42704
Date: Thu, 28 Jul 2016 13:34:24 -0400
Message-ID: <23730.1469727264@sss.pgh.pa.us> (raw)
In-Reply-To: <20160728172132.E29CE4010C@smtp.hushmail.com>
References: <20160728151154.AABE64016B@smtp.hushmail.com>
<CAKOSWN=zerBHmt4e4FQ_MEwZxtDvVRZYVg83+RyfN7DCfNWKGQ@mail.gmail.com>
<19144.1469721911@sss.pgh.pa.us>
<20160728172132.E29CE4010C@smtp.hushmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
joel.traf@magwerks.com writes:
> My i humbly suggest adding notes to the create table clone ( original
> including all).
Done at
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=46b773d4fe0f0c880a1073cb5366efa02...> Also suggest adding the same comment to the Insert on conflict
> stating. Tables that are cloned with (including all ) the constraint
> is not automatically recreated with the same name so the constraint
> needs to be manually re-created with that specific name for the temp
> table.
I think that's overkill, considering that LIKE is such a minor feature
that it's not even mentioned anywhere except this one part of the
CREATE TABLE man page.
> Additionally could throw a notice that when a table is cloned with the
> copy indexes or constraints, stating names are not preserved and may
> cause issues with Upsert on conflict.
And that's right around the bend. I realize you're annoyed at the moment,
but nannying NOTICE messages are something nobody likes for long.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, joel.traf@magwerks.com, vitaly.burovoy@gmail.com
Subject: Re: bug error message constraint "con_item_id_costelement" for table "costs" does not exist SQL state: 42704
In-Reply-To: <23730.1469727264@sss.pgh.pa.us>
References: <20160728151154.AABE64016B@smtp.hushmail.com> <CAKOSWN=zerBHmt4e4FQ_MEwZxtDvVRZYVg83+RyfN7DCfNWKGQ@mail.gmail.com> <19144.1469721911@sss.pgh.pa.us> <20160728172132.E29CE4010C@smtp.hushmail.com> <23730.1469727264@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