Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM9Ty-0003fx-OD for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Sep 2021 13:43:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mM9Tx-00032b-DG for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Sep 2021 13:43:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM9Tx-00032S-0O for pgsql-hackers@lists.postgresql.org; Fri, 03 Sep 2021 13:43:49 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mM9Tu-0003Xu-74 for pgsql-hackers@lists.postgresql.org; Fri, 03 Sep 2021 13:43:48 +0000 Received: from [10.0.1.15] (unknown [188.123.231.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 9A2ED21C7A94; Fri, 3 Sep 2021 16:43:44 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1630676624; bh=zZSZJRMp676EU5e0zb+aF651/QSueUUCWBy+h9X0icg=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=jLZKsTKpotjD4R8TDhUhv6l4k0rdx29yX/tjUrIkMFaREvlBJEvyvj4nQhDfOrB3s 2OT/5KE8+yiNMpLfxkfunAdmgnJmwg/cXpif63xyLuqbgyPa4DRKau3gOe2WGDIbiJ bIhZPjfGUxJc3lZcOstWptu32NlloQtBsyoT90os= Subject: Re: psql: \dl+ to list large objects privileges To: Georgios Kokolatos , pgsql-hackers@lists.postgresql.org Cc: Pavel Luzanov References: <6d722115-6297-bc53-bb7f-5f150e765299@postgrespro.ru> <90da33e5-5886-11f0-d22f-b2ff8b2d4b99@postgrespro.ru> <163067194414.1167.8140856874411625212.pgcf@coridan.postgresql.org> From: Pavel Luzanov Message-ID: <47402814-d495-4d9d-dfda-e3d3a67c1ea2@postgrespro.ru> Date: Fri, 3 Sep 2021 16:43:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <163067194414.1167.8140856874411625212.pgcf@coridan.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Thank you very mush for review. I will prepare a new version of the patch according to your comments. For now, I will answer this question: > I will also inquire as to the need for renaming the function `do_lo_list` to > `listLargeObjects` and its move to describe.c. from large_obj.c. In itself it is > not necessarily a blocking point, though it will require some strong arguments > for doing so. I understand that I needed a good reason for such actions. On the one hand all the commands for working with large objects are in large_obj.c. On the other hand, all commands for displaying the contents of system catalogs are in describe.c. The function do_lo_list belongs to both groups. The main reason for moving the function to describe.c is that I wanted to use the printACLColumn function to display lomacl column. printACLColumn function is used in all the other commands to display privileges and this function is locally defined in describe.c and there is no reason to make in public. Another option is to duplicate the printACLColumn function (or its contents) in large_obj.c. This seemed wrong to me. Is it any other way? Pavel Luzanov Postgres Professional: https://postgrespro.com The Russian Postgres Company