From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Jim Nasby <jim(at)nasby(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Disallow arrays with non-standard lower bounds |
Date: | 2014-01-10 22:06:09 |
Message-ID: | 20140110220609.GB25693@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jan 10, 2014 at 03:26:04PM -0600, Jim Nasby wrote:
> On 1/9/14, 10:58 PM, Tom Lane wrote:
> >Jim Nasby <jim(at)nasby(dot)net> writes:
> >>ISTM that allowing users to pick arbitrary lower array bounds was
> >>a huge mistake. I've never seen anyone make use of it, can't think
> >>of any legitimate use cases for it, and hate the stupendous amount
> >>of extra code needed to deal with it.
> >
> >You lack imagination, sir.
>
> Considering what you'd normally want to do in SQL, the only example
> I can think of is to not have the argument over 0 vs 1 based.
>
> Actually, I was thinking there might be some computational problems
> where changing lower bound would be nice, but then again, what other
> languages actually support this?
Well, there's Perl, but that's not an argument *for* doing this, and I
say that as a long-time Perl user (who has never seen this feature
used in code worth not scrapping, by the way).
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2014-01-10 22:10:16 | Re: Disallow arrays with non-standard lower bounds |
Previous Message | Stephen Frost | 2014-01-10 22:02:08 | Re: Standalone synchronous master |