Re: PQftype(copy_rset) returns zero OIDs???

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQftype(copy_rset) returns zero OIDs???
Date: 2024-02-27 17:11:59
Message-ID: 2127876.1709053919@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dominique Devienne <ddevienne(at)gmail(dot)com> writes:
> For the first time, I'm checking the OIDs returned
> (via the result set's PQftype API), by "regular" SELECT:
> ...
> And to my surprise, they are not!
> The ones from the COPY are all zeros.

> Is that normal?

The CopyInResponse and CopyOutResponse messages don't carry any
column name or type indications, so yes it's normal.

https://www.postgresql.org/docs/current/protocol-message-formats.html

Maybe we missed a bet there, but AFAIR you are the first person to
ask for this in twenty-plus years.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thiemo Kellner 2024-02-27 17:49:38 Me again with an insert trigger problem
Previous Message Jason Long 2024-02-27 17:00:43 Re: PostgreSQL Guard