Does the Postgres client psql have a functionality like the @@ of Oracle SQLPlus?
For those who are wondering what @@ does: it allows to call a relative sql script from another script.
\iror\include_relativefilenameThe
\ircommand is similar to\i, but resolves relative file names differently. When executing in interactive mode, the two commands behave identically. However, when invoked from a script,\irinterprets file names relative to the directory in which the script is located, rather than the current working directory.
\i other_script.sqldoes the trick.