pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: PQftype(copy_rset) returns zero OIDs???
Date: Tue, 27 Feb 2024 12:11:59 -0500
Message-ID: <2127876.1709053919@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFCRh-8BMj86X6DfpfQuV3NnTaH4eU+4=-MAwyhVKT98EThFMg@mail.gmail.com>
References: <CAFCRh-8BMj86X6DfpfQuV3NnTaH4eU+4=-MAwyhVKT98EThFMg@mail.gmail.com>

Dominique Devienne <ddevienne@gmail.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





view thread (3+ messages)  latest in thread

Message-ID: <2127876.1709053919@sss.pgh.pa.us>
Permalink:  ../2127876.1709053919@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2127876.1709053919@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ddevienne@gmail.com
  Subject: Re: PQftype(copy_rset) returns zero OIDs???
  In-Reply-To: <2127876.1709053919@sss.pgh.pa.us>
  References: <CAFCRh-8BMj86X6DfpfQuV3NnTaH4eU+4=-MAwyhVKT98EThFMg@mail.gmail.com> <2127876.1709053919@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox