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 1tfZyW-003SGz-Qf for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2025 07:37:33 +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 1tfZyV-00CbD3-Sw for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Feb 2025 07:37:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tfZyV-00CbCj-Fl for pgsql-hackers@lists.postgresql.org; Wed, 05 Feb 2025 07:37:31 +0000 Received: from mail.clear-code.com ([2401:2500:102:3037:153:126:203:179]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tfZyS-003H0p-38 for pgsql-hackers@postgresql.org; Wed, 05 Feb 2025 07:37:30 +0000 Received: from localhost (unknown [IPv6:2404:7a80:9f01:f500:af1b:fa00:91d6:aaa9]) by mail.clear-code.com (Postfix) with ESMTPSA id 3B1EB56250B; Wed, 5 Feb 2025 16:37:26 +0900 (JST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.clear-code.com 3B1EB56250B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clear-code.com; s=default; t=1738741046; bh=pbGntcZPGscd2jAigLPKo8L1mbbcb9TcUPpWfS4Dgdg=; h=Date:To:Cc:Subject:From:In-Reply-To:References:From; b=TVe6IpDzWfhvsQ24c2UKdqCGnK1pQCWRYgQLT/xRKINgb4cgt2597Fx1vzd7R0urj Fr0QHmpyOxNOoDlXLcouRILTCSKnRXYf96JvS/Ry5wl5+eAlOzuxY1DzpJmXIbpfVC 2JbVp/1ebuhYFerxd9QGGWgXhMolgMBe14Pyas/c= Date: Wed, 05 Feb 2025 16:37:25 +0900 (JST) Message-Id: <20250205.163725.963329192546915298.kou@clear-code.com> To: sawada.mshk@gmail.com Cc: v.popolitov@postgrespro.ru, zhjwpku@gmail.com, michael@paquier.xyz, pgsql-hackers@postgresql.org Subject: Re: Make COPY format extendable: Extract COPY TO format implementations From: Sutou Kouhei In-Reply-To: References: <20250204.152927.1922290693174479861.kou@clear-code.com> X-Mailer: Mew version 6.8 on Emacs 29.4 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Server: mail.clear-code.com X-Rspamd-Queue-Id: 3B1EB56250B X-Rspamd-Action: no action X-Spamd-Result: default: False [2.90 / 999.00]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_CC(0.00)[postgrespro.ru,gmail.com,paquier.xyz,postgresql.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; ASN(0.00)[asn:2518, ipnet:2404:7a80::/29, country:JP]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_NONE(0.00)[]; RCPT_COUNT_FIVE(0.00)[5] List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, In "Re: Make COPY format extendable: Extract COPY TO format implementations" on Tue, 4 Feb 2025 17:32:07 -0800, Masahiko Sawada wrote: > BTW we need to check if the return value type of the handler function > is copy_handler. Oh, can we do it without calling a function? It seems that FmgrInfo doesn't have return value type information. Should we read pg_catalog.pg_proc or something for it? Thanks, -- kou