-- Add transaction status (%x) to prompt.
\set PROMPT1 '%x%/%R%# '
-\set PROMPT2 :PROMPT1
+-- Remove database from second prompt to make it easily distinguishable from
+-- PROMPT1.
+\set PROMPT2 '%x%R%# '
-- But display the normal psql welcome message.
\set QUIET off