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

Поиск
Список
Период
Сортировка
От Pavel Luzanov
Тема Re: psql: \dl+ to list large objects privileges
Дата
Msg-id 50d41934-edca-c607-47d1-485b191fac1d@postgrespro.ru
обсуждение исходный текст
Ответ на Re: psql: \dl+ to list large objects privileges  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql: \dl+ to list large objects privileges  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Justin, Tom,

Thanks for the review and the help in splitting the patch into two parts.

> I wonder if we shouldn't put these new tests in largeobject.sql instead.
> (That would mean there are two expected-files to change, which is a bit
> tedious, but it's not very hard.)

As suggested, I moved the tests from psql.sql to largeobject.sql.
The tests are added to the beginning of the file because I need one 
large object with a known id and a known owner.  This guarantees the 
same output of \dl+ as expected.

I made the same changes to two files in the 'expected' directory: 
largeobject.out and largeobject_1.out.
Although I must say that I still can't understand why more than one file 
with expected result is used for some tests.

Also, I decided to delete following line in the listLargeObjects 
function because all the other commands in describe.c do not contain it:
     myopt.topt.tuples_only = false;

This changed the existing behavior, but is consistent with the other 
commands.

Second version (after splitting) is attached.
v2-0001-move-and-rename-do_lo_list.patch - no changes,
v2-0002-print-large-object-acls.patch - tests moved to largeobject.sql

-- 
Pavel Luzanov
Postgres Professional: https://postgrespro.com
The Russian Postgres Company


Вложения

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

Предыдущее
От: Himanshu Upadhyaya
Дата:
Сообщение: Re: SQL/JSON: functions
Следующее
От: Peter Smith
Дата:
Сообщение: Re: row filtering for logical replication