From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Extend psql's \lo_list/\dl to be able to print large objects' AC
Date: Thu, 06 Jan 2022 18:09:18 +0000
Message-ID: <E1n5XCQ-000311-Sl@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Extend psql's \lo_list/\dl to be able to print large objects' AC
In-Reply-To: <E1n5XCQ-000311-Sl@gemulon.postgresql.org>
References: <E1n5XCQ-000311-Sl@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox