Extend psql's \lo_list/\dl to be able to print large objects' ACLs.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Jan 2022 18:09:05 +0000 (13:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Jan 2022 18:09:05 +0000 (13:09 -0500)
commit328dfbdabd22e321bfe1f0547be71faca99a11e9
tree3066c13d8e42d48fcbe95b53bca85bf66e9d03a1
parentee5822361dabf03300a24f60d57a968a654e1d46
Extend psql's \lo_list/\dl to be able to print large objects' ACLs.

The ACL is printed when you add + to the command, similarly to
various other psql backslash commands.

Along the way, move the code for this into describe.c,
where it is a better fit (and can share some code).

Pavel Luzanov, reviewed by Georgios Kokolatos

Discussion: https://postgr.es/m/6d722115-6297-bc53-bb7f-5f150e765299@postgrespro.ru
doc/src/sgml/ddl.sgml
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/help.c
src/bin/psql/large_obj.c
src/bin/psql/large_obj.h
src/test/regress/expected/largeobject.out
src/test/regress/expected/largeobject_1.out
src/test/regress/sql/largeobject.sql