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 1s0HLS-002dfT-R1 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Apr 2024 08:54:14 +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 1s0HLQ-008RIa-74 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Apr 2024 08:54:13 +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 1s0HLP-008RHq-TA for pgsql-hackers@lists.postgresql.org; Fri, 26 Apr 2024 08:54:12 +0000 Received: from ml.sraoss.co.jp ([66.11.59.17]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s0HLN-00097U-3z for pgsql-hackers@postgresql.org; Fri, 26 Apr 2024 08:54:11 +0000 Received: from sranhm.sraoss.co.jp (unknown [192.168.174.164]) by osspc26.sraoss.co.jp (Postfix) with ESMTP id BE7542F000EF; Fri, 26 Apr 2024 17:54:06 +0900 (JST) Received: from yugon-CFSV7-1 (unknown [192.168.176.4]) by sranhm.sraoss.co.jp (Postfix) with SMTP id 9E68434162B; Fri, 26 Apr 2024 17:54:06 +0900 (JST) Date: Fri, 26 Apr 2024 17:54:06 +0900 From: Yugo NAGATA To: Nathan Bossart Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Extend ALTER DEFAULT PRIVILEGES for large objects Message-Id: <20240426175406.13e47ea3904de814afbfe496@sraoss.co.jp> In-Reply-To: <20240424210839.GA863220@nathanxps13> References: <20240424115242.236b499b2bed5b7a27f7a418@sraoss.co.jp> <3602391.1713930458@sss.pgh.pa.us> <20240424210839.GA863220@nathanxps13> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 24 Apr 2024 16:08:39 -0500 Nathan Bossart wrote: > On Tue, Apr 23, 2024 at 11:47:38PM -0400, Tom Lane wrote: > > On the whole I find this proposed feature pretty unexciting > > and dubiously worthy of the implementation/maintenance effort. > > I don't have any particularly strong feelings on $SUBJECT, but I'll admit > I'd be much more interested in resolving any remaining reasons folks are > using large objects over TOAST. I see a couple of reasons listed in the > docs [0] that might be worth examining. > > [0] https://www.postgresql.org/docs/devel/lo-intro.html If we could replace large objects with BYTEA in any use cases, large objects would be completely obsolete. However, currently some users use large objects in fact, so improvement in this feature seems beneficial for them. Apart from that, extending TOAST to support more than 1GB data and stream-style access seems a good challenge. I don't know if there was a proposal for this in past. This is just a thought, for this purpose, we will need a new type of varlena that can contains large size information, and a new toast table schema that can store offset information or some way to convert a offset to chunk_seq. Regards, Yugo Nagata > -- > Nathan Bossart > Amazon Web Services: https://aws.amazon.com -- Yugo NAGATA