pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14201: In psql prompt2 %R can be (
4+ messages / 4 participants
[nested] [flat]

* BUG #14201: In psql prompt2 %R can be (
@ 2016-06-19 12:11  dpa-postgres@aegee.org
  0 siblings, 1 reply; 4+ messages in thread

From: dpa-postgres@aegee.org @ 2016-06-19 12:11 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14201
Logged by:          Dilian Palauzov
Email address:      dpa-postgres@aegee.org
PostgreSQL version: 9.5.3
Operating system:   Documentation
Description:        

doc/sgml/ref/psql-ref.sgml > Advanced Features > Prompting > %R forgets to
state, that in prompt 2 the substitution can be open parenthesis,  as seen
in the beginning of the Examples section.

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/ref/psql-ref.sgml#l3632


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14201: In psql prompt2 %R can be (
@ 2016-06-19 12:29  Martín Marqués <martin@2ndquadrant.com>
  parent: dpa-postgres@aegee.org
  0 siblings, 1 reply; 4+ messages in thread

From: Martín Marqués @ 2016-06-19 12:29 UTC (permalink / raw)
  To: dpa-postgres@aegee.org; pgsql-bugs

El 19/06/16 a las 09:11, dpa-postgres@aegee.org escribió:
> 
> doc/sgml/ref/psql-ref.sgml > Advanced Features > Prompting > %R forgets to
> state, that in prompt 2 the substitution can be open parenthesis,  as seen
> in the beginning of the Examples section.
> 
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/ref/psql-ref.sgml#l3632

That's correct, and a good catch.

Could you provide a patch which fixes the documentation?

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14201: In psql prompt2 %R can be (
@ 2016-06-19 13:09  Дилян Палаузов <dpa-postgres@aegee.org>
  parent: Martín Marqués <martin@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Дилян Палаузов @ 2016-06-19 13:09 UTC (permalink / raw)
  To: Martín Marqués <martin@2ndquadrant.com>; pgsql-bugs

Hello,

here is a proposed patch.

On 06/19/2016 02:29 PM, Martín Marqués wrote:
> El 19/06/16 a las 09:11, dpa-postgres@aegee.org escribió:
>>
>> doc/sgml/ref/psql-ref.sgml > Advanced Features > Prompting > %R forgets to
>> state, that in prompt 2 the substitution can be open parenthesis,  as seen
>> in the beginning of the Examples section.
>>
>> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/ref/psql-ref.sgml#l3632
>
> That's correct, and a good catch.
>
> Could you provide a patch which fixes the documentation?
>

---
doc/sgml/ref/psql-ref.sgml > Advanced Features > Prompting > %R forgets to
state, that in prompt 2 the substitution can be an open parenthesis,  as
seen in the beginning of the Examples section:
     
   testdb=> CREATE TABLE my_table (
   testdb(>  first integer not null default 0,
   testdb(>  second text)
   testdb-> ;
   CREATE TABLE

inline patch 1: doc/src/sgml/ref/psql-ref.sgml (+2/-2 lines) download inline-1.patchdiff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index aef7228..972e38a 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -3630,11 +3630,11 @@ testdb=&gt; <userinput>INSERT INTO my_table VALUES (:'content');</userinput> in single-line mode, and <literal>!</literal> if the session is disconnected from the database (which can happen if <command>\connect</command> fails). In prompt 2 the sequence is - replaced by <literal>-</literal>, <literal>*</literal>, a single quote, + replaced by <literal>-</literal>, <literal>*</literal>, <literal>(</literal>, a single quote, a double quote, or a dollar sign, depending on whether <application>psql</application> expects more input because the command wasn't terminated yet, because you are inside a - <literal>/* ... */</literal> comment, or because you are inside + <literal>/* ... */</literal> comment, because psql expects a closing parenthesis, or because you are inside a quoted or dollar-escaped string. In prompt 3 the sequence doesn't produce anything. </para>
-- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: BUG #14201: In psql prompt2 %R can be (
@ 2016-06-19 17:14  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Дилян Палаузов <dpa-postgres@aegee.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2016-06-19 17:14 UTC (permalink / raw)
  To: Дилян Палаузов <dpa-postgres@aegee.org>; +Cc: Martín Marqués <martin@2ndquadrant.com>; pgsql-bugs

=?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= <dpa-postgres@aegee.org> writes:
> On 06/19/2016 02:29 PM, Martín Marqués wrote:
>> El 19/06/16 a las 09:11, dpa-postgres@aegee.org escribió:
>>> doc/sgml/ref/psql-ref.sgml > Advanced Features > Prompting > %R forgets to
>>> state, that in prompt 2 the substitution can be open parenthesis,  as seen
>>> in the beginning of the Examples section.

>> That's correct, and a good catch.
>> Could you provide a patch which fixes the documentation?

> here is a proposed patch.

This patch didn't apply cleanly for me, but I incorporated the change
along with some extra wordsmithing.  Thanks for noticing this oversight!

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2016-06-19 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-19 12:11 BUG #14201: In psql prompt2 %R can be ( dpa-postgres@aegee.org
2016-06-19 12:29 ` Martín Marqués <martin@2ndquadrant.com>
2016-06-19 13:09   ` Дилян Палаузов <dpa-postgres@aegee.org>
2016-06-19 17:14     ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox