0

I'm trying to set the alias for command permanently in PostgreSQL. I've set the alias for a command like given below.

Test=> \set x '\\! reset'

So, the alias has set for reset the terminal. While using command, we have to use it like this,

Test=> :x

So it will clear[reset] the terminal. But this alias is set for temporarily only. If I logged out from PostgreSQL and again logging in means, This alias is not working. So I want to know,

Is there any way to set the alias for command permanently in PostgreSQL?

Thanks in advance...!

Your Answer

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

Browse other questions tagged or ask your own question.