Introduction to SQL REPL

Learn about psql and how to set up PostgreSQL locally.

PostgreSQL ships with an interactive console with the command-line tool named psql. It can be used both for scripting and interactive usage and is, moreover, quite a powerful tool. Interactive features include autocompletion, readline support (history searches, modern keyboard movements, etc.), input and output redirection, formatted output, and more.

Get hands-on with 1400+ tech skills courses.