Entering and executing queries within psql can be done one of a few different ways. When using the client in interactive mode you will probably be directly entering query data (i.e., standard input, or stdin ). However, through the use of psql 's \i slash command you are able to let psql read and interpret a file on your local filesystem as the query data.