On Thu, Mar 30, 2023 at 6:00 PM Tom Lane <t...@sss.pgh.pa.us> wrote:
> Dominique Devienne <ddevie...@gmail.com> writes: > > Does the wire-format of arrays differ between binary-binds and > binary-copy? > > No. > An update on this, I think I figure it out, by comparing with COPY TO STDOUT WITH (FORMAT BINARY). I was missing the byte-count "header" for the array. Since I'm reusing my binary-bind code for COPY, I'm missing the 4 bytes for the array's "total encoded byte length" before the array data proper. Now that I understand the issue, should be a simple matter to fix. Thanks for chiming in Tom. --DD