Apr 10 2015

How to Delete psql Command Prompt History in PostgreSQL

Category: AdministrationFatih Acar @ 09:56

When you use psql command prompt, system automaticly saves your prompts. If you use password when user creates operation, this situation can occur security risk. Therefore, you can delete this prompts with editing psql_history file like below.

Find And Delete psql Prompts

[root@pg ~]# locate .psql_history
[root@pg ~]# vi /var/lib/pgsql/.psql_history

44,888 total views, 10 views today

Tags: PostgreSQL, PostgreSQL Administration

facebook comments:

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.