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