libpq: COPY FROM STDIN BINARY of arrays

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: libpq: COPY FROM STDIN BINARY of arrays
Date: 2023-03-30 15:40:04
Message-ID: CAFCRh-_piMcfUA=kty4a4N7jJiARBmi9F5uS_FfJ8=pwc-fgMw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I already use arrays fine (e.g. text[]) in BINARY mode binds (with prepared
statement or not).
I already use COPY FROM STDIN BINARY fine, with scalar values.

But for the 1st time, I'm combining COPY with arrays,
and it is NOT fine yet :(

#08P01: ERROR: insufficient data left in message
CONTEXT: COPY UT_LibPQ_copy_arrays, line 1, column ptys

Does the wire-format of arrays differ between binary-binds and binary-copy?
Any pointers to what I could look at, to resolve this? doc? code? example?

Thanks, --DD

PS: If that helps, I'm willing to detail the break-down of all values /
bytes I'm sending

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-03-30 16:00:46 Re: libpq: COPY FROM STDIN BINARY of arrays
Previous Message Laurenz Albe 2023-03-30 15:13:53 Re: Using CTID system column as a "temporary" primary key