Re: Disallow arrays with non-standard lower bounds - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: Disallow arrays with non-standard lower bounds
Date
Msg-id 7CCFF3C3-1847-499D-AA68-46E9B678DBAD@phlo.org
Whole thread Raw
In response to Re: Disallow arrays with non-standard lower bounds  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On Jan14, 2014, at 00:33 , Craig Ringer <craig@2ndquadrant.com> wrote:
> So I guess the question is: Is it worth all that hassle to remove a
> misfeature you have to go out of your way to use? Is support for non-1
> lower bounds stopping us from doing something useful and important? Or
> is it just an irritation that it exists?

I don't think it's worh it - as you say, the actual risk of bugs is low,
because you have to go out of your way to end up with a lower bound other
than one.

Also, at least from my POV, the fact that we use one type do represent
arrays with an arbitrary number of dimensions is actually worse than
the lower-bound problem. So *if* we ever remove support for arbitrary
lower bounds, we should also add distinct types for different dimensions.
That'd probably required some extension of the type system though...

best regards,
Florian Pflug




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Where do we stand on 9.3 bugs?
Next
From: "Etsuro Fujita"
Date:
Subject: Comment typo in src/include/access/gin_private.h