pgsql: intarray: return empty zero-dimensional array for an empty arra

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: intarray: return empty zero-dimensional array for an empty arra
Date: 2013-09-07 15:44:40
Message-ID: E1VIKgi-0002q6-6B@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

intarray: return empty zero-dimensional array for an empty array

Previously a one-dimensional empty array was returned, but its text
representation matched a zero-dimensional array, and there is no way to
dump/reload a one-dimensional empty array.

BACKWARD INCOMPATIBILITY

Per report from elein

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c155f654b4f755b4111bd9adb60559fe22526a10

Modified Files
--------------
contrib/intarray/_int_tool.c | 7 +++++++
1 file changed, 7 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2013-09-08 11:16:51 pgsql: Close file to no leak file descriptor memory. Found by Coverity.
Previous Message Noah Misch 2013-09-06 23:43:46 pgsql: Don't VALGRIND_PRINTF() each query string.