mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -34,6 +34,7 @@ extern bool pg_set_block(pgsocket sock);
|
||||
|
||||
/* Portable path handling for Unix/Win32 (in path.c) */
|
||||
|
||||
extern bool has_drive_prefix(const char *filename);
|
||||
extern char *first_dir_separator(const char *filename);
|
||||
extern char *last_dir_separator(const char *filename);
|
||||
extern char *first_path_var_separator(const char *pathlist);
|
||||
|
Reference in New Issue
Block a user