Re: Array dimension lost if dimension length is zero

From: Shay Rojansky <roji(at)roji(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Array dimension lost if dimension length is zero
Date: 2016-09-09 06:51:40
Message-ID: CADT4RqD6d=pDokO+cVUcU27ZF7uOyZ45jtkS_Y549MTEzRZeSA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>
> This is intentional: all empty arrays are alike, with zero dimensions
> (not one dimension, but none).
>

Also, note that when reading an empty array in binary encoding, the
dimension field contains one.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Gierth 2016-09-09 07:13:41 Re: Array dimension lost if dimension length is zero
Previous Message leohuanruan 2016-09-09 01:26:10 BUG #14319: Logical decoding dropping statements in subtransactions