Skip site navigation (1) Skip section navigation (2)

pgsql-server: Require that array literals produce "rectangular" arrays,

From: joe(at)svr1(dot)postgresql(dot)org (Joe Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Require that array literals produce "rectangular" arrays,
Date: 2004-08-05 03:31:27
Message-ID: (view raw or whole thread)
Lists: pgsql-committers
Log Message:
Require that array literals produce "rectangular" arrays, i.e. all the
subarrays of a given dimension have the same number of elements/subarrays.

Also repair a longstanding undocumented (as far as I can see) ability to
explicitly set array bounds in the array literal syntax. It now can
deal properly with negative array indicies. Modify array_out so that
arrays with non-standard lower bounds (i.e. not 1) are output with
the expicit dimension syntax. This fixes a longstanding issue whereby
arrays with non-default lower bounds had them changed to default
after a dump/reload cycle.

Modify regression tests and docs to suit, and add some minimal
documentation regarding the explicit dimension syntax.

Modified Files:
        array.sgml (r1.35 -> r1.36)
        arrayfuncs.c (r1.105 -> r1.106)
        arrays.out (r1.21 -> r1.22)
        domain.out (r1.31 -> r1.32)
        domain.sql (r1.16 -> r1.17)

pgsql-committers by date

Next:From: Dennis BjorklundDate: 2004-08-05 06:38:38
Subject: pgsql-server: Translation updates
Previous:From: Joe ConwayDate: 2004-08-05 03:12:14
Subject: pgsql-server: Restore behavior of --pgxs option to that of the original

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group