Re: documentation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: documentation
Date
Msg-id 17469.1162485343@sss.pgh.pa.us
Whole thread Raw
In response to documentation  (Maxim Britov <maxim.britov@gmail.com>)
List pgsql-bugs
Maxim Britov <maxim.britov@gmail.com> writes:
> maxim=# SELECT version()
> maxim-# SELECT version();
> ERROR:  syntax error at or near "SELECT" at character 18
> СТРОКА 2: SELECT version();
>           ^

What you typed there was a two-line query equivalent to
    SELECT version() SELECT version();
which of course is a syntax error.  Notice how the prompt changed ---
that's psql's means of telling you that it's accepting a continuation
line for an incomplete query.  The query ends at a semicolumn, not
a newline.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Maxim Britov
Date:
Subject: documentation
Next
From: Tom Lane
Date:
Subject: Re: BUG #2729: Backslash escaping not working as expected