]> granicus.if.org Git - postgresql/commit
Allow assignment to array elements not contiguous with those already
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Sep 2006 21:22:21 +0000 (21:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Sep 2006 21:22:21 +0000 (21:22 +0000)
commit352a56ba68d00a4bce9944e1b0e6aeda8d3c021f
tree8d3801c892b019547435dcd21fbad3e3e2322561
parent673a573dcc1ef928a1047e75aba2926c692e76cc
Allow assignment to array elements not contiguous with those already
present; intervening positions are filled with nulls.  This behavior
is required by SQL99 but was not implementable before 8.2 due to lack
of support for nulls in arrays.  I have only made it work for the
one-dimensional case, which is all that SQL99 requires.  It seems quite
complex to get it right in higher dimensions, and since we never allowed
extension at all in higher dimensions, I think that must count as a
future feature addition not a bug fix.
doc/src/sgml/array.sgml
src/backend/utils/adt/arrayfuncs.c
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql