PostgreSQL
 SQL >> Database >  >> RDS >> PostgreSQL

Inviare la .psql_history di PostgreSQL a /dev/null

Puoi usare l'interruttore -n (o il suo sinonimo --no-readline) con il comando psql.

MODIFICA:

In alternativa, crea un file ~/.psqlrc contenente \set HISTFILE /dev/null. Con questa impostazione, psql non creerà affatto il file .psql_history indesiderato.