Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TaEzN-0008ED-Pv for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 00:13:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TaEzI-0004qR-8X for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 00:13:25 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qAJ0DINl018331; Sun, 18 Nov 2012 19:13:18 -0500 (EST) From: Tom Lane To: Phil Sorber cc: pgsql-bugs@postgresql.org Subject: Re: Prepared Statement Name Truncation In-reply-to: References: <23706.1353223982@sss.pgh.pa.us> Comments: In-reply-to Phil Sorber message dated "Sun, 18 Nov 2012 13:14:26 -0500" Date: Sun, 18 Nov 2012 19:13:18 -0500 Message-ID: <18330.1353283998@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/142 X-Sequence-Number: 34700 Phil Sorber writes: > I think making this a warning now would be a bit more forceful way to > let people know that this is a bad idea and this is a case where maybe > they need to work around postgres' lack of conformance to the spec. It > would most likely be caught sooner as well by DBA's. Then in 9.3 we > can make it an error with a GUC to easily override it back to a > warning. Let me be clear here: I don't think we can or should ever make this into an error by default. Doing that would break spec-compliant applications, whether or not they are using names that actually have any conflicts. There's some possible value in having a non-default option to throw error for overlength names, but TBH I fear that it won't buy all that much, because people won't think to turn it on when testing. Given the historical volume of complaints (to wit, none up to now), I can't get very excited about changing the behavior here. I think we're more likely to annoy users than accomplish anything useful. regards, tom lane