pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phil Sorber <phil@omniti.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Prepared Statement Name Truncation
Date: Sun, 18 Nov 2012 19:13:18 -0500
Message-ID: <18330.1353283998@sss.pgh.pa.us> (raw)
In-Reply-To: <CADAkt-h6WGZxunpXz2H+LoXHKDtR=0yKcWcDO=MKYRJApxEw8A@mail.gmail.com>
References: <CADAkt-hGbxM6QXrPDR=f+VV1PEABLf+i8eu71VSR_vBg5r=P=Q@mail.gmail.com>
	<23706.1353223982@sss.pgh.pa.us>
	<CADAkt-h6WGZxunpXz2H+LoXHKDtR=0yKcWcDO=MKYRJApxEw8A@mail.gmail.com>

Phil Sorber <phil@omniti.com> 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




view thread (23+ messages)  latest in thread

Message-ID: <18330.1353283998@sss.pgh.pa.us>
Permalink:  ../18330.1353283998@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18330.1353283998@sss.pgh.pa.us

 · 

reply

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, phil@omniti.com
  Subject: Re: Prepared Statement Name Truncation
  In-Reply-To: <18330.1353283998@sss.pgh.pa.us>
  References: <CADAkt-hGbxM6QXrPDR=f+VV1PEABLf+i8eu71VSR_vBg5r=P=Q@mail.gmail.com> <23706.1353223982@sss.pgh.pa.us> <CADAkt-h6WGZxunpXz2H+LoXHKDtR=0yKcWcDO=MKYRJApxEw8A@mail.gmail.com> <18330.1353283998@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