Re: Add %x to PROMPT1 and PROMPT2
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-01-29T07:25:08Z
Lists: pgsql-hackers
Hello Vik, >> Isn't there examples in the documentation which use the default prompts? >> >> If so, should they be updated accordingly? > > Good catch! > I thought about the documentation but not the examples therein. > > Updated patch attached. Ok. Only one transaction prompt example in the whole documentation:-( No tests is troubled by the change:-( Sigh… Patch applies and compiles cleanly, global and psql make check ok. Doc build ok. Works for me. I'd be in favor of adding a non trivial session example in psql documentation at the end of the prompt stuff section, something like: BEGIN; CREATE TABLE Word(data TEXT PRIMARY KEY); COPY Word(data) FROM STDIN; hello \. SELECT 2+; ROLLBACK; but this is not necessary for this patch. -- Fabien.
Commits
-
Add %x to default PROMPT1 and PROMPT2 in psql
- dcdbb5a5db09 13.0 landed