\i
psql CommandsExecute SQL from file in psql
Examples
Common usage examples
Run SQL file
\i script.sqlRun file relative to current script
\ir relative/path/script.sqlNotes
- \ir is useful for including files within scripts
Related Commands
You might also find these useful