Re: psql: \dl+ to list large objects privileges

Поиск
Список
Период
Сортировка
От Pavel Luzanov
Тема Re: psql: \dl+ to list large objects privileges
Дата
Msg-id 47402814-d495-4d9d-dfda-e3d3a67c1ea2@postgrespro.ru
обсуждение исходный текст
Ответ на Re: psql: \dl+ to list large objects privileges  (Georgios Kokolatos <gkokolatos@protonmail.com>)
Список pgsql-hackers
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




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Improve logging when using Huge Pages
Следующее
От: Amit Langote
Дата:
Сообщение: Re: Multi-Column List Partitioning