BUG #7730: intarray representation of empty arrays

From: elein(at)varlena(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #7730: intarray representation of empty arrays
Date: 2012-12-05 00:44:39
Message-ID: E1Tg36N-0005dd-Vg@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 7730
Logged by: elein
Email address: elein(at)varlena(dot)com
PostgreSQL version: 9.2.1
Operating system: Linux
Description:

select NULLIF('{1,2,3}'::integer[] - '{3,2,1}'::integer[], '{}'::integer[]);
This returns an empty array. It should return NULL.

Per RhodiumToad: the core code represents '{}' as an array with 0
dimensions, whereas intarray represents it as an array with 1 dimension but
0 elements

intarray should use the same standards as the core code if possible. I
peered at the code and don't see anything untoward but did not have time to
spend on it.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2012-12-05 01:10:07 Re: PITR potentially broken in 9.2
Previous Message Tom Lane 2012-12-05 00:35:48 Re: PITR potentially broken in 9.2