pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Phil Sorber <phil@omniti.com>
Cc: pgsql-bugs@postgresql.org
Cc: Greg Sabino Mullane <greg@turnstep.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Prepared Statement Name Truncation
Date: Sun, 18 Nov 2012 17:19:04 +1300
Message-ID: <50A861B8.4090609@archidevsys.co.nz> (raw)
In-Reply-To: <CADAkt-h0rvwju8v=L3iH3ukygT7Jy+igMwdkK=ZGQXhdWYxCgA@mail.gmail.com>
References: <6bbb6151ee8205741a05512bc81d059d@biglumber.com>
	<50A85EAB.8080306@archidevsys.co.nz>
	<CADAkt-h0rvwju8v=L3iH3ukygT7Jy+igMwdkK=ZGQXhdWYxCgA@mail.gmail.com>

On 18/11/12 17:10, Phil Sorber wrote:
>
> On Nov 17, 2012 11:06 PM, "Gavin Flower" 
> <GavinFlower@archidevsys.co.nz <mailto:GavinFlower@archidevsys.co.nz>> 
> wrote:
> >
> > On 18/11/12 16:49, Greg Sabino Mullane wrote:
> >>
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: RIPEMD160
> >>
> >>
> >>> NOTICE:  identifier
> >>> "this_is_a_really_long_identifier_for_a_prepared_statement_name_ok"
> >>> will be truncated to
> >>> "this_is_a_really_long_identifier_for_a_prepared_statement_name_"
> >>> PREPARE
> >>
> >> ...
> >>>
> >>> The ORM could use a shorter identifier, but it supports multiple 
> backends
> >>> and this is probably not something in their test suite. In addition it
> >>> actually works!
> >>
> >> For now. If it really works, then by definition it does not /need/ to
> >> be that long, as the truncated version is not blowing things up.
> [...]
> >>> Set a hard limit and ERROR instead of truncating and NOTICE?
> >>> Both? Neither because that would break backward compatibility?
> >>
> >> My vote is WARNING and bump limit to 128 in 9.3. That's the combo most
> >> likely to make dumb applications work better while not breaking
> >> existing smart ones.
> >>
> >>
>
[...]
>
> > Would it be appropriate to make it a WARNING in 9.2.2, then increase 
> the length in 9.3?
> >
> > Though I still feel I'd like it to be an ERROR, may be a 
> configuration variable in 9.3 to promote it to an ERROR with WARNING 
> being the default?
> >
>
> In that case I'd make it ERROR by default and make people override to 
> WARNING if it breaks things. Otherwise no one will change.
>
> [...]
>
How about a WARNING in 9.2.2, and ERROR in 9.3 with a configuration 
option to downgrade it to WARNING - as well as increasing the max length 
to 128 to match the standard in 9.3 (I assume the size increase is to 
drastic for 9.2.x!)?


Cheers,
Gavin

view thread (23+ messages)  latest in thread

Message-ID: <50A861B8.4090609@archidevsys.co.nz>
Permalink:  ../50A861B8.4090609@archidevsys.co.nz/
Also on:    postgresql.org/message-id/50A861B8.4090609@archidevsys.co.nz

 · 

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: GavinFlower@archidevsys.co.nz, phil@omniti.com, greg@turnstep.com, pgsql-general@postgresql.org
  Subject: Re: Prepared Statement Name Truncation
  In-Reply-To: <50A861B8.4090609@archidevsys.co.nz>
  References: <6bbb6151ee8205741a05512bc81d059d@biglumber.com> <50A85EAB.8080306@archidevsys.co.nz> <CADAkt-h0rvwju8v=L3iH3ukygT7Jy+igMwdkK=ZGQXhdWYxCgA@mail.gmail.com> <50A861B8.4090609@archidevsys.co.nz>

* 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