pgsql: Extend psql's \lo_list/\dl to be able to print large objects' AC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Extend psql's \lo_list/\dl to be able to print large objects' AC
Date: 2022-01-06 18:09:18
Message-ID: E1n5XCQ-000311-Sl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/328dfbdabd22e321bfe1f0547be71faca99a11e9

Modified Files
--------------
doc/src/sgml/ddl.sgml | 2 +-
doc/src/sgml/ref/psql-ref.sgml | 10 ++++--
src/bin/psql/command.c | 6 ++--
src/bin/psql/describe.c | 46 +++++++++++++++++++++++++
src/bin/psql/describe.h | 2 ++
src/bin/psql/help.c | 4 +--
src/bin/psql/large_obj.c | 39 ---------------------
src/bin/psql/large_obj.h | 1 -
src/test/regress/expected/largeobject.out | 53 ++++++++++++++++++-----------
src/test/regress/expected/largeobject_1.out | 53 ++++++++++++++++++-----------
src/test/regress/sql/largeobject.sql | 28 +++++++--------
11 files changed, 144 insertions(+), 100 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-01-06 21:47:13 pgsql: Prevent altering partitioned table's rowtype, if it's used elsew
Previous Message Michael Paquier 2022-01-06 02:42:31 pgsql: doc: Remove link to JSON support in the SQL specification