From e8a61711da179cd947bb467539ffe21c5f898ccb Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 19 Apr 2010 13:53:04 -0400 Subject: [PATCH] Database-specific history files and keep lots of history --- config/.psqlrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/.psqlrc b/config/.psqlrc index a2cdd18..f3c26ac 100644 --- a/config/.psqlrc +++ b/config/.psqlrc @@ -19,6 +19,11 @@ -- If a statement in a transaction block generates an error, the error is ignored and the transaction continues. \set ON_ERROR_ROLLBACK on +-- history files for each database +\set HISTFILE ~/.psql_history- :HOST - :DBNAME + +-- Save 5000 lines of history +\set HISTSIZE 5000 -- Aliases to print table sizes: -- Example: :tsize limit 5;