1

When you log on Oracle database with SQLplus, it looks for a login.sql file in the current directory. If the file exists, it's executed.

It's usefull to set preferences...

There is an equivalent when I log to a PostgreSQL database with psql ?

4

Yes, there is. It's stored in ~/.psqlrc

More details in the manual: http://www.postgresql.org/docs/current/static/app-psql.html#AEN85369

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.