mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -248,7 +248,7 @@ slashUsage(unsigned short int pager)
|
||||
fprintf(output, _(" \\dFt[+] [PATTERN] list text search templates\n"));
|
||||
fprintf(output, _(" \\dg[S+] [PATTERN] list roles\n"));
|
||||
fprintf(output, _(" \\di[S+] [PATTERN] list indexes\n"));
|
||||
fprintf(output, _(" \\dl list large objects, same as \\lo_list\n"));
|
||||
fprintf(output, _(" \\dl[+] list large objects, same as \\lo_list\n"));
|
||||
fprintf(output, _(" \\dL[S+] [PATTERN] list procedural languages\n"));
|
||||
fprintf(output, _(" \\dm[S+] [PATTERN] list materialized views\n"));
|
||||
fprintf(output, _(" \\dn[S+] [PATTERN] list schemas\n"));
|
||||
@ -325,7 +325,7 @@ slashUsage(unsigned short int pager)
|
||||
fprintf(output, _("Large Objects\n"));
|
||||
fprintf(output, _(" \\lo_export LOBOID FILE\n"
|
||||
" \\lo_import FILE [COMMENT]\n"
|
||||
" \\lo_list\n"
|
||||
" \\lo_list[+]\n"
|
||||
" \\lo_unlink LOBOID large object operations\n"));
|
||||
|
||||
ClosePager(output);
|
||||
|
Reference in New Issue
Block a user