Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzYRg-0003eR-U2 for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Jan 2014 21:07:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VzYRg-0005vO-C8 for pgsql-bugs@arkaria.postgresql.org; Sat, 04 Jan 2014 21:07:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzYRf-0005uP-Bq for pgsql-bugs@postgresql.org; Sat, 04 Jan 2014 21:07:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VzYRd-0006Oq-1X for pgsql-bugs@postgresql.org; Sat, 04 Jan 2014 21:07:47 +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 s04L7dZ4006673; Sat, 4 Jan 2014 16:07:39 -0500 From: Tom Lane To: Peter Eisentraut , eshkinkot@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8702: psql \df+ translate_columns[] overflow and unexpected gettext translation In-reply-to: <668.1388444467@sss.pgh.pa.us> References: <1388202637.18242.3.camel@vanquo.pezone.net> <668.1388444467@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 30 Dec 2013 18:01:07 -0500" Date: Sat, 04 Jan 2014 16:07:39 -0500 Message-ID: <6672.1388869659@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 Tom Lane writes: > Peter Eisentraut writes: >> Obviously, this is not a very robust programming interface, if the same >> mistake has been repeated three times independently. > Yeah :-(. How about adding an Assert as in the attached? I cleaned up the issues in \dy and committed this. 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