Thread: documentation

documentation

From
Maxim Britov
Date:
SSByZWFkIGl0IGh0dHA6Ly93d3cucG9zdGdyZXNxbC5vcmcvZG9jcy84LjEv
aW50ZXJhY3RpdmUvdHV0b3JpYWwtYWNjZXNzZGIuaHRtbA0KDQpJIGNhbid0
IHVzZSBleGFtcGxlczoNCg0KbWF4aW0tIyBTRUxFQ1QgdmVyc2lvbigpOw0K
RVJST1I6ICBzeW50YXggZXJyb3IgYXQgb3IgbmVhciAiU0VMRUNUIiBhdCBj
aGFyYWN0ZXIgMTgNCtCh0KLQoNCe0JrQkCAyOiBTRUxFQ1QgdmVyc2lvbigp
Ow0KICAgICAgICAgIF4NCg0KbWF4aW09IyBTRUxFQ1QgdmVyc2lvbigpIDsN
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICB2ZXJzaW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICANCi0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0NCiBQb3N0Z3JlU1FMIDguMS40IG9uIHg4Nl82NC1wYy1saW51eC1nbnUs
IGNvbXBpbGVkIGJ5IEdDQyB4ODZfNjQtcGMtbGludXgtZ251LWdjYyAoR0ND
KSA0LjEuMSAoR2VudG9vIDQuMS4xLXIxKQ0KKDEg0LfQsNC/0LjRgdGMKQ0K
DQptYXhpbT0jIFNFTEVDVCB2ZXJzaW9uKCk7DQogICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVyc2lvbiAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQogUG9zdGdyZVNRTCA4
LjEuNCBvbiB4ODZfNjQtcGMtbGludXgtZ251LCBjb21waWxlZCBieSBHQ0Mg
eDg2XzY0LXBjLWxpbnV4LWdudS1nY2MgKEdDQykgNC4xLjEgKEdlbnRvbyA0
LjEuMS1yMSkNCigxINC30LDQv9C40YHRjCkNCg0KbWF4aW09IyBTRUxFQ1Qg
dmVyc2lvbigpDQoNCm1heGltLSMgU0VMRUNUIHZlcnNpb24oKTsNCkVSUk9S
OiAgc3ludGF4IGVycm9yIGF0IG9yIG5lYXIgIlNFTEVDVCIgYXQgY2hhcmFj
dGVyIDE4DQrQodCi0KDQntCa0JAgMjogU0VMRUNUIHZlcnNpb24oKTsNCiAg
ICAgICAgICBeDQoNCklzIGl0IG15IGxvY2FsIHRyb3VibGVzL21pc3VuZGVy
c3RhbmRpbmc/IFRoYW5rcyENCg0KLS0gDQpNYXhpbSBCcml0b3YNCg0KR251
UEcgS2V5SUQgMHg0NTgwQTZENjZGM0RCMUZCIHhtcHA6bWF4aW1AbW9kdW0u
YnkgaWNxIDE5ODE3MTI1OA0KRmluZ2VycHJpbnQ6IDQwNTkgQjVDNSA4OTg1
IDVBNDcgOEY1QSA4NjIzIDQ1ODAgQTZENiA2RjNEIEIxRkINCkdudVBHLXJ1
IFRlYW0gKGh0dHA6Ly9saXN0cy5nbnVwZy5vcmcvbWFpbG1hbi9saXN0aW5m
by9nbnVwZy1ydQ0KICAgICAgICAgICAgICAgeG1wcDpnbnVwZy1ydUBjb25m
ZXJlbmNlLmphYmJlci5ydSkNCg==

Re: documentation

From
Tom Lane
Date:
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