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 1sjh9K-0034Bl-U0 for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Aug 2024 15:33:26 +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 1sjh9I-003quM-5Z for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Aug 2024 15:33:24 +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 1sjh9H-003quE-Ra for pgsql-hackers@lists.postgresql.org; Thu, 29 Aug 2024 15:33:24 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sjh9B-00229J-V7 for pgsql-hackers@postgresql.org; Thu, 29 Aug 2024 15:33:23 +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 47TFX8oc3601909; Thu, 29 Aug 2024 11:33:08 -0400 From: Tom Lane To: David Rowley cc: Andy Fan , pgsql-hackers Subject: Re: Make printtup a bit faster In-reply-to: References: <87wmjzfz0h.fsf@163.com> Comments: In-reply-to David Rowley message dated "Thu, 29 Aug 2024 23:51:48 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3601907.1724945588.1@sss.pgh.pa.us> Date: Thu, 29 Aug 2024 11:33:08 -0400 Message-ID: <3601908.1724945588@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > [ redesign I/O function APIs ] > I had planned to work on this for PG18, but I'd be happy for some > assistance if you're willing. I'm skeptical that such a thing will ever be practical. To avoid breaking un-converted data types, all the call sites would have to support both old and new APIs. To avoid breaking non-core callers, all the I/O functions would have to support both old and new APIs. That probably adds enough overhead to negate whatever benefit you'd get. regards, tom lane