mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Add \ir command to psql.
\ir is short for "include relative"; when used from a script, the supplied pathname will be interpreted relative to the input file, rather than to the current working directory. Gurjeet Singh, reviewed by Josh Kupershmidt, with substantial further cleanup by me.
This commit is contained in:
@ -158,7 +158,7 @@ slashUsage(unsigned short int pager)
|
||||
{
|
||||
FILE *output;
|
||||
|
||||
output = PageOutput(92, pager);
|
||||
output = PageOutput(93, pager);
|
||||
|
||||
/* if you add/remove a line here, change the row count above */
|
||||
|
||||
@ -184,6 +184,7 @@ slashUsage(unsigned short int pager)
|
||||
fprintf(output, _(" \\copy ... perform SQL COPY with data stream to the client host\n"));
|
||||
fprintf(output, _(" \\echo [STRING] write string to standard output\n"));
|
||||
fprintf(output, _(" \\i FILE execute commands from file\n"));
|
||||
fprintf(output, _(" \\ir FILE as \\i, but relative to location of current script\n"));
|
||||
fprintf(output, _(" \\o [FILE] send all query results to file or |pipe\n"));
|
||||
fprintf(output, _(" \\qecho [STRING] write string to query output stream (see \\o)\n"));
|
||||
fprintf(output, "\n");
|
||||
|
Reference in New Issue
Block a user