dbTalk Databases Forums  

[BUGS] psql 8.0.0 rc5 parser error on \dt?

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] psql 8.0.0 rc5 parser error on \dt? in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Bodenstab
 
Posts: n/a

Default [BUGS] psql 8.0.0 rc5 parser error on \dt? - 01-17-2005 , 12:26 PM






I built 8.0.0rc5 on FreeBSD 4.8. It built with no errors. I then
tried psql using another host running postgresql 7.1.3 and I get the
goofy error message shown below. Other backslash commands seem to work
(ie. \? \e \q).

$ psql -h host-running-7.1.3 test
Welcome to psql 8.0.0rc5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

test=> \dt
ERROR: parser: parse error at or near "."
test=> \q
$

Just to see if there might be something funny with the flex generated
parser, I ran flex against psqlscan.l; the output was identical to the
original psqlscan.c.

I built postgresql with:

$ pg_config --configure
'--with-template=freebsd' '--with-pam' '--with-openssl' 'CFLAGS= ' 'CPPFLAGS= ' 'LDFLAGS=-L/usr/local/lib'

I have not installed postgresql previously on this system, so it cannot
be picking up anything from a previous install.

A question: where would I go to check if this problem has already
been reported?

Thanks.

Dave Bodenstab


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] psql 8.0.0 rc5 parser error on \dt? - 01-17-2005 , 12:55 PM






Dave Bodenstab <dave (AT) bodenstab (DOT) org> writes:
Quote:
I built 8.0.0rc5 on FreeBSD 4.8. It built with no errors. I then
tried psql using another host running postgresql 7.1.3 and I get the
goofy error message shown below.
psql's backslash commands are only guaranteed to work with a server of
the same version. Trying 8.0 against a prehistoric server like that
is going to result in all kinds of oddness. (Look at the actual
queries with -E to see why.)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
  #3  
Old   
Dave Bodenstab
 
Posts: n/a

Default Re: [BUGS] psql 8.0.0 rc5 parser error on \dt? - 01-20-2005 , 01:19 PM



Quote:
Dave Bodenstab <dave (AT) bodenstab (DOT) org> writes:
I built 8.0.0rc5 on FreeBSD 4.8. It built with no errors. I then
tried psql using another host running postgresql 7.1.3 and I get the
goofy error message shown below.

psql's backslash commands are only guaranteed to work with a server of
the same version. Trying 8.0 against a prehistoric server like that
is going to result in all kinds of oddness. (Look at the actual
queries with -E to see why.)

That was it, thank you. I've now got 8.0.0rc5 installed and running.
The \dt command of psql works fine.


I wonder if it might be possible to issue an error message that
reflects the incompatible version situation that I encountered.
The message I got led me to believe that there was some sort of
parse error in the input I was typing. Had the error message told
me that the DB versions did not match and that unpredictable results
could occur, I might have figured out the problem myself -- or at
least tried it against 8.0.0rc5 once I got it running.

Anyway, thanks again for your response.

Dave Bodenstab

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.