Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf10r-00Ew57-Vc for pgsql-general@arkaria.postgresql.org; Tue, 27 Feb 2024 17:13:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rf0zr-004G3e-Vs for pgsql-general@arkaria.postgresql.org; Tue, 27 Feb 2024 17:12:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf0zr-004G3W-LB for pgsql-general@lists.postgresql.org; Tue, 27 Feb 2024 17:12:04 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf0zp-001VvX-49 for pgsql-general@postgresql.org; Tue, 27 Feb 2024 17:12:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 41RHBxI92127877; Tue, 27 Feb 2024 12:11:59 -0500 From: Tom Lane To: Dominique Devienne cc: pgsql-general@postgresql.org Subject: Re: PQftype(copy_rset) returns zero OIDs??? In-reply-to: References: Comments: In-reply-to Dominique Devienne message dated "Tue, 27 Feb 2024 13:12:45 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2127875.1709053919.1@sss.pgh.pa.us> Date: Tue, 27 Feb 2024 12:11:59 -0500 Message-ID: <2127876.1709053919@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dominique Devienne 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