Difference between revisions of "Psqlrc"

From PostgreSQL wiki
Jump to: navigation, search
(Created page with "psqlrc is the configuration file read by the https://www.postgresql.org/docs/current/static/app-psql.html psql client. psql will typically read both a systemwide psqlrc an...")
(No difference)

Revision as of 20:00, 24 August 2017

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

Useful Snippets

Useful psqlrc tricks