[psql] Setting the PROMPT on command line

From: Ingo van Lil <inguin(at)gmx(dot)de>
To: pgsql-patches(at)postgresql(dot)org
Subject: [psql] Setting the PROMPT on command line
Date: 2004-10-07 00:04:22
Message-ID: 20041007000422.GA15255@marvin.csn.tu-chemnitz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi there,

I wrote a tiny patch to prevent psql from overwriting the PROMPT[1-3]
variables with default values after parsing the command line. That way
the prompt can be set from the command line by using:

psql -v PROMPT1=...

The patch is against postgres 7.4.5, but it's so trivial it should be
possible to apply it to CVS without changes.

Cheers,
Ingo

Attachment Content-Type Size
psql.patch text/plain 872 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2004-10-07 00:10:54 Re: s_lock_test build fix
Previous Message Oliver Jowett 2004-10-07 00:01:08 Re: Two-phase commit