Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XO9aS-0000LZ-8x for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Aug 2014 18:10:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XO9aR-0001pF-Jv for pgsql-hackers@arkaria.postgresql.org; Sun, 31 Aug 2014 18:10:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XO9aQ-0001p7-6x for pgsql-hackers@postgresql.org; Sun, 31 Aug 2014 18:10:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XO9aM-0006aa-VW for pgsql-hackers@postgresql.org; Sun, 31 Aug 2014 18:10:45 +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 s7VIAXnZ014364; Sun, 31 Aug 2014 14:10:34 -0400 From: Tom Lane To: David G Johnston cc: pgsql-hackers@postgresql.org, Bruce Momjian Subject: Re: Re: [BUGS] Re: BUG #9555: pg_dump for tables with inheritance recreates the table with the wrong order of columns In-reply-to: <1409507164344-5817073.post@n5.nabble.com> References: <20140827144053.GL14956@momjian.us> <31422.1409153093@sss.pgh.pa.us> <20140828014030.GA777962@tornado.leadboat.com> <20140830233226.GC15078@momjian.us> <4268.1409503835@sss.pgh.pa.us> <1409507164344-5817073.post@n5.nabble.com> Comments: In-reply-to David G Johnston message dated "Sun, 31 Aug 2014 10:46:04 -0700" Date: Sun, 31 Aug 2014 14:10:33 -0400 Message-ID: <14363.1409508633@sss.pgh.pa.us> X-Pg-Spam-Score: -3.6 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org David G Johnston writes: > Would it be proper to issue an additional top-level warning with the column > moved notification? Thus there would be NOTICE, NOTICE, WARNING in the > above example? Or, more generically, "columns reordered to match inherited > column order" to avoid multiple warnings if more than one column is moved. That's a good point: if this message fires at all, it will probably fire more than once; do we want that? If we do it as you suggest here, we'll lose the information as to exactly which columns got relocated, which perhaps is bad, or maybe it doesn't matter. Also, I don't remember the exact code structure in that area, but it might be a bit painful to arrange that we get only one such warning even when inheriting from multiple parents. If we do want the specific moved columns to be identified, I'd still go with errdetail on the NOTICE rather than two separate messages. I think calling it a WARNING is a bit extreme anyway. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers