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)
commit705f84a800900768347d66f2bbdfdb32cfad2d3e
treefe8561fcdadae96ff3d3fa0ec6ec889022964503
parent4f056dcdd75b28bac25c7b6849a0d4c8cb55a4b3
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