Extend psql's \lo_list/\dl to be able to print large objects' ACLs.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ddl.sgml | modified | +1 −1 |
| doc/src/sgml/ref/psql-ref.sgml | modified | +8 −2 |
| src/bin/psql/command.c | modified | +4 −2 |
| src/bin/psql/describe.c | modified | +46 −0 |
| src/bin/psql/describe.h | modified | +2 −0 |
| src/bin/psql/help.c | modified | +2 −2 |
| src/bin/psql/large_obj.c | modified | +0 −39 |
| src/bin/psql/large_obj.h | modified | +0 −1 |
| src/test/regress/expected/largeobject_1.out | modified | +34 −19 |
| src/test/regress/expected/largeobject.out | modified | +34 −19 |
| src/test/regress/sql/largeobject.sql | modified | +13 −15 |
Documentation touched
Discussion
- psql: \dl+ to list large objects privileges 18 messages · 2021-08-31 → 2022-01-06