PostgreSQL: Include files by relative path


You can include files in psql using the relative path like so:

\ir <filename>

Or, as a longer alternative:

\include_relative <filename>


When using \ir from a file that was just included using \ir, the path will be interpreted relative to the nearest file in the include tree.

Loading comments...