Re: Add %x to PROMPT1 and PROMPT2 - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Add %x to PROMPT1 and PROMPT2
Date
Msg-id alpine.DEB.2.21.2001271250190.24374@pseudo
Whole thread Raw
In response to Re: Add %x to PROMPT1 and PROMPT2  (Vik Fearing <vik.fearing@2ndquadrant.com>)
Responses Re: Add %x to PROMPT1 and PROMPT2  (Vik Fearing <vik.fearing@2ndquadrant.com>)
List 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.

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Windows port, fix some resources leaks
Next
From: Amit Langote
Date:
Subject: Re: adding partitioned tables to publications