When you start a
psql session, your current directory is what
use as its current directory. This is important for meta-commands that use
relative paths based on the current directory — for instance, the
meta-command for importing files.
You can change the current directory within a
psql session using the
If my current directory is
home and there is a
sql directory in
these commands will do the following:
meta-command even supports tab completion relative to the current
You can also change to your home directory using just\cd`.