Skip to main content
Tweeted twitter.com/#!/StackDBAs/status/466469274828427264
edited tags
Link
Erwin Brandstetter
  • 186.5k
  • 28
  • 465
  • 639
Source Link

How do I automatically set meta commands when starting psql?

When I start a psql session, I would like certain meta commands to already be set.

For instance:

\x auto \set ON_ERROR_STOP on 

I was hoping to find an rc or config file but couldn't. The command line options don't seem comprehensive either.