Set all null fields to NULL:
After this,the query results look like this:
select 'test' as test_text,null as test_null; test_text | test_null -----------+----------- test| NULL (1 row)
After this,the query results look like this:
select 'test' as test_text,null as test_null; test_text | test_null -----------+----------- test| NULL (1 row)
After this,the history file naming look like this:
.psql_history-alpha-testdb .psql_history-localhost-test .psql_history-10.20.10.101-production ...
Set timing on and see how long query took:
psql prompt can be customized to your preference:
After this,the PROMPT1 look like this:
(wwwuser@alpha:5432) [webdb] >
Final .psqlrc file look like this:
One additional tip is to add less to PAGER environment variable if you want to use less rather than more. So simply add following row to profile (/etc/profile or ~/.profile):