We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
psql is the command-line tool for interacting with your PostgreSQL database.
psql
mkdir -p db/postgres/rc
You can persist your preferences using .psqlrc and .inputrc files.
.psqlrc
.inputrc
Create a .psqlrc with your preferred settings:
db/postgres/rc/.psqlrc
\pset pager off \setenv PAGER 'less -S'
See the psql reference for all available options.
Create .inputrc to set readline behavior:
db/postgres/rc/.inputrc
set editing-mode vi
Add to your compose.override.yaml (this file is for development-only overriding of compose.yaml):
compose.override.yaml
compose.yaml
db/compose.override.yaml
services: postgres: volumes: - ./postgres/rc:/rc:ro environment: PSQLRC: /rc/.psqlrc INPUTRC: /rc/.inputrc
docker compose up -d --force-recreate postgres