051.PGSQL-postgres的.bash_profile 、.psqlrc、.psql_history、.bash_history文件

[root@s101 /var/lib/pgsql]#cat .bash_profile

./.bash_profile
./.psql_history
./.bash_history
./.psqlrc
 

.bash_profile

系统变量

.psql_history

历史操作的sql语句

.bash_history

历史操作的命令行

.psqlrc

定制化脚本,数据库启动时执行,可以把一些常用脚本注册成命令

原文地址:https://www.cnblogs.com/star521/p/15103941.html