Re: Array dimension lost if dimension length is zero - Mailing list pgsql-bugs

From Shay Rojansky
Subject Re: Array dimension lost if dimension length is zero
Date
Msg-id CADT4RqD6d=pDokO+cVUcU27ZF7uOyZ45jtkS_Y549MTEzRZeSA@mail.gmail.com
Whole thread Raw
In response to Re: Array dimension lost if dimension length is zero  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Array dimension lost if dimension length is zero  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List 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.

pgsql-bugs by date:

Previous
From: leohuanruan@gmail.com
Date:
Subject: BUG #14319: Logical decoding dropping statements in subtransactions
Next
From: Andrew Gierth
Date:
Subject: Re: Array dimension lost if dimension length is zero