Review: alternate psql file locations

Lists: pgsql-hackers
From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Review: alternate psql file locations
Date: 2012-02-21 17:27:17
Message-ID: F02F8F95-F722-4D53-B9A2-D22E704CE219@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Reference: http://archives.postgresql.org/message-id/4F00CA9E.9000307@dunslane.net

This patch adds support for two new environment variables:

PSQL_HISTORY: Alternative location for the command history file.
PSQLRC: Alternative location of the user's .psqlrc file.

The context diff patch applies cleanly with a few offsets. Builds normally and all tests pass, although it adds no new tests. The documentation looks fine. The functionality is useful and works perfectly well in my quick test.

Marking ready for committer.

Best,

David