psql
PostgreSQL command-line client.
=> More information.
- Connect to the database. It connects to localhost using default port 5432 with default user as currently logged in user:
psql {database}
- Connect to the database on given server host running on given port with given username, without a password prompt:
psql -h {host} -p {port} -U {username} {database}
- Connect to the database; user will be prompted for password:
psql -h {host} -p {port} -U {username} -W {database}
- Execute a single SQL query or PostgreSQL command on the given database (useful in shell scripts):
psql -c '{query}' {database}
- Execute commands from a file on the given database:
psql {database} -f {file.sql}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY
Proxy Information
- Original URL
- gemini://freeshell.de/tldr/psql.gmi
- Status Code
- Success (20)
- Meta
text/gemini;lang=en-GB
- Capsule Response Time
- 103.40307 milliseconds
- Gemini-to-HTML Time
- 0.39536 milliseconds
This content has been proxied by September (ba2dc).