Thread: parser-error

parser-error

From
Ralf Bortfeldt
Date:
Hello pg-cracks,

I´m connecting remote to a pgsql server and get a successful login to the
specified database xy.
I can do the basic queries BUT some of the meta-commandos don´t work.
----------------------------------------------------------
Examples:
----------------------------------------------------------
#input 1:
>>xy=> \d
#to get an overview on the tables in db xy

#server response:
>>ERROR:  parser: parse error at or near "."
-----------------------------------------------------------
 #similiar with input 2:
>>xy=> \l
#to get an overview on databases on the pgsql-server
#server response:
ERROR:  parser: parse error at or near "("
------------------------------------------------------------

Oddly enough, the meta-commands \q and \? do work.
Did anybody stumble about this problem or something similiarly and has an idea
how to fix it?

best regards
Ralf


Re: parser-error

From
Tom Lane
Date:
Ralf Bortfeldt <bortfeldt@minet.uni-jena.de> writes:
> I can do the basic queries BUT some of the meta-commandos don�t work.

psql's backslash commands tend to be version-specific.  Use a psql that
matches the server you are talking to.  In this case it appears you are
using a 7.3 or later psql with a pre-7.3 server.

            regards, tom lane