Psqlrc

From PostgreSQL wiki
Jump to navigationJump to search

psqlrc is the configuration file read by the [psql client]. psql will typically read both a systemwide psqlrc and the per-user one (in ~/.psqlrc on unix-ish systems)

It allows a lot of customization of psql, including defining macros to implement new commands.

TODO: Needs curation. This is a work in progress, collecting existing examples of psqlrc configuration, in the hope someone will go through and pull out some interesting snippets, and maybe a kitchen sink psqlrc that has all the good bits in it.

Articles


Examples