pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Phil Sorber <phil@omniti.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Prepared Statement Name Truncation
Date: Mon, 19 Nov 2012 08:43:45 -0500
Message-ID: <20121119134345.GK5162@tamriel.snowman.net> (raw)
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>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> 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.

If we increase the length to the spec requirement (full disclosure- I
havn't checked the spec on this myself), I'd be for making it an error
if someone goes over that limit.  Right now we have a risk of spec
compliant applications not working under PG for nearly zero good
justification in today's age (iow- I don't really buy the concern about
the size, and if that is a reasonable concern then we could look at
putting in the effort to make it variable length and seriously reduce
today's wasted space).

Regarding the other concerns about how we don't honor the spec
completely- those are situations where we are more flexible and allow
more than the spec says we should.  Those are not things which would
break a spec-compliant application, while this is.

> 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.

I agree that it wouldn't make sense to have an option to make it an
error which is off by default.

> 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.

The lack of compliants is a good reason to not lose sleep over this, I
don't think it's an excuse which allows us to ignore the spec and
applications which adhere to it, if there's someone willing to do the
work to fix it.

I'm not volunteering (yet), but I wouldn't say "no, we're never going to
fix this" either.  Perhaps a TODO item to investigate the value of
making relname variable length?  Or to investigate the actual impact of
increasing the length?

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (23+ messages)  latest in thread

Message-ID: <20121119134345.GK5162@tamriel.snowman.net>
Permalink:  ../20121119134345.GK5162@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20121119134345.GK5162@tamriel.snowman.net

 · 

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: sfrost@snowman.net, tgl@sss.pgh.pa.us, phil@omniti.com
  Subject: Re: Prepared Statement Name Truncation
  In-Reply-To: <20121119134345.GK5162@tamriel.snowman.net>
  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> <20121119134345.GK5162@tamriel.snowman.net>

* 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