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 1tzfWb-004zcL-UG for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 17:35:45 +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 1tzfWa-004hV7-M7 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 17:35:44 +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 1tzfWa-004hUp-Cd for pgsql-hackers@lists.postgresql.org; Tue, 01 Apr 2025 17:35:44 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzfWX-002O5l-21 for pgsql-hackers@postgresql.org; Tue, 01 Apr 2025 17:35:43 +0000 Received: from [192.168.11.4] (p1695135-ipoe.ipoe.ocn.ne.jp [118.0.92.134]) by oss.nttdata.com (Postfix) with ESMTPSA id 7F6F261974; Wed, 2 Apr 2025 02:35:36 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: Date: Wed, 2 Apr 2025 02:35:35 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Extend ALTER DEFAULT PRIVILEGES for large objects To: Yugo NAGATA , Laurenz Albe Cc: Nathan Bossart , Tom Lane , pgsql-hackers@postgresql.org References: <20240424115242.236b499b2bed5b7a27f7a418@sraoss.co.jp> <3602391.1713930458@sss.pgh.pa.us> <20240424210839.GA863220@nathanxps13> <20240426175406.13e47ea3904de814afbfe496@sraoss.co.jp> <20240913161801.b1e60534d77fa9df447b775f@sraoss.co.jp> <9c0c4d7881d2450baf70edb0ae95415a81ac8cb1.camel@cybertec.at> <20250123192220.9bad2b9aec110bf335521276@sraoss.co.jp> Content-Language: en-US From: Fujii Masao In-Reply-To: <20250123192220.9bad2b9aec110bf335521276@sraoss.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/01/23 19:22, Yugo NAGATA wrote: > On Wed, 22 Jan 2025 13:30:17 +0100 > Laurenz Albe wrote: > >> On Fri, 2024-09-13 at 16:18 +0900, Yugo Nagata wrote: >>> I've attached a updated patch. The test is rewritten using has_largeobject_privilege() >>> function instead of calling loread & lowrite, which makes the test a bit simpler. >>> Thare are no other changes. >> >> When I tried to apply this patch, I found that it doesn't apply any >> more since commit f391d9dc93 renamed tab-complete.c to tab-complete.in.c. >> >> Attached is a rebased patch. > > Thank you for updating the patch! > >> I agree that large objects are a feature that should fade out (alas, >> the JDBC driver still uses it for BLOBs). But this patch is not big >> or complicated and is unlikely to create a big maintenance burden. >> >> So I am somewhat for committing it. It works as advertised. >> If you are fine with my rebased patch, I can mark it as "ready for >> committer". If it actually gets committed depends on whether there >> is a committer who thinks it worth the effort or not. > > I confirmed the patch and I am fine with it. I've started reviewing this patch since it's marked as "ready for committer". I know of several systems that use large objects, and I believe this feature would be beneficial for them. Overall, I like the idea. The latest patch looks good to me. I just have one minor comment: > only the privileges for schemas, tables (including views and foreign > tables), sequences, functions, and types (including domains) can be > altered. In alter_default_privileges.sgml, this part should also mention large objects? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION