Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSpEE-0001UE-7M for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Jul 2016 17:36:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bSpED-00039p-ML for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Jul 2016 17:36:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bSpCa-0002jq-Rj for pgsql-bugs@postgresql.org; Thu, 28 Jul 2016 17:34:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bSpCX-00009J-Q5 for pgsql-bugs@postgresql.org; Thu, 28 Jul 2016 17:34:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6SHYO4S023731; Thu, 28 Jul 2016 13:34:24 -0400 From: Tom Lane To: joel.traf@magwerks.com cc: "Vitaly Burovoy" , pgsql-bugs@postgresql.org Subject: Re: bug error message constraint "con_item_id_costelement" for table "costs" does not exist SQL state: 42704 In-reply-to: <20160728172132.E29CE4010C@smtp.hushmail.com> References: <20160728151154.AABE64016B@smtp.hushmail.com> <19144.1469721911@sss.pgh.pa.us> <20160728172132.E29CE4010C@smtp.hushmail.com> Comments: In-reply-to joel.traf@magwerks.com message dated "Thu, 28 Jul 2016 13:21:32 -0400" Date: Thu, 28 Jul 2016 13:34:24 -0400 Message-ID: <23730.1469727264@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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=46b773d4fe0f0c880a1073cb5366efa02efa8ef8 > 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