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 1rgx0n-008np9-9k for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 01:21:02 +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 1rgx0k-002zi1-P6 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 01:20:59 +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 1rgx0j-002zht-T3 for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 01:20:58 +0000 Received: from m16.mail.163.com ([220.197.31.5]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rgx0d-002dWA-PD for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 01:20:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=8YHG3IKwTgbe4Yw5xkzgrMIiBoN8XRCSCOA0VZ+uhpI=; b=VdTH1uQfrV0L93dfzf6ShLTGpJ1khRWWIQOK23YMFHhUEOvARHIocnS6dvun6d vyZiJ36yRHMqMrHsZFOSRIriWLZ1tm9IbCFx5dMBnt5ZQcYb4+rSMaGbF5v5CD0y mkxAK/euUXg8U7PyW58RX2QFBjlOw3YXeS/0HKrtCm2QQ= Received: from 8235eee8a2a0 (unknown [140.205.118.153]) by gzga-smtp-mta-g1-4 (Coremail) with SMTP id _____wDnFwHnIeVlTD01AA--.13543S3; Mon, 04 Mar 2024 09:20:39 +0800 (CST) References: <87il4jrk1l.fsf@163.com> <87sf3andy2.fsf@163.com> <87wmskm9qu.fsf@163.com> <87v87kvboq.fsf@163.com> <71321d83-391b-473b-aaf6-618c7f682b96@postgrespro.ru> <87r0i7vos3.fsf@163.com> <874je3hcwn.fsf@163.com> <8734tmg88e.fsf@163.com> <7f4c8673-4c5d-4dbf-b8e5-0ec11cd2fba0@enterprisedb.com> <87h6i2djf9.fsf@163.com> <87jzms0xza.fsf@163.com> <87frxf1gld.fsf@163.com> <871q8z19ux.fsf@163.com> <87msrgdq93.fsf@163.com> User-agent: mu4e 1.10.7; emacs 29.1 From: Andy Fan To: Tomas Vondra Cc: Nikita Malakhov , Michael Zhilin , Peter Smith , vignesh C , Matthias van de Meent , pgsql-hackers@lists.postgresql.org Subject: Re: Shared detoast Datum proposal Date: Mon, 04 Mar 2024 09:17:27 +0800 In-reply-to: Message-ID: <874jdmeqs8.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID: _____wDnFwHnIeVlTD01AA--.13543S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Ar4UKrWfCryUZFWUJFy5Jwb_yoW8Gr13pF W5ta42gF12kr4Syrs2v3W8tw1Ykrs5KFyUGr1kGr97A395XF1avrW7Kr45CayxWrZ2qrn0 qFWUu3y7Z3WFvaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRpVbQUUUUU= X-Originating-IP: [140.205.118.153] X-CM-SenderInfo: x2klx3xlid0iqsrtqiywtou0bp/1tbiVB6XU2VOBuPV+wABsv List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > On 3/3/24 02:52, Andy Fan wrote: >> >> Hi Nikita, >> >>> >>> Have you considered another one - to alter pg_detoast_datum >>> (actually, it would be detoast_attr function) and save >>> detoasted datums in the detoast context derived >>> from the query context? >>> >>> We have just enough information at this step to identify >>> the datum - toast relation id and value id, and could >>> keep links to these detoasted values in a, say, linked list >>> or hash table. Thus we would avoid altering the executor >>> code and all detoast-related code would reside within >>> the detoast source files? >> >> I think you are talking about the way Tomas provided. I am really >> afraid that I was thought of too self-opinionated, but I do have some >> concerns about this approch as I stated here [1], looks my concerns is >> still not addressed, or the concerns itself are too absurd which is >> really possible I think? >> > > I can't speak for others, but I did not consider you and your > proposals too self-opinionated. This would be really great to know:) > You did > propose a solution that you consider the right one. That's fine. People > will question that and suggest possible alternatives. That's fine too, > it's why we have this list in the first place. I agree. -- Best Regards Andy Fan