Unix Technical Forum

\list

This is a discussion on \list within the pgsql Novice forums, part of the PostgreSQL category; --> Hi, I'm quite new to PSQL , trying to list all tables available in a db called "cgi" and ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:21 PM
Jos
 
Posts: n/a
Default \list

Hi,

I'm quite new to PSQL , trying to list all tables available in a db called
"cgi" and here's what psql gives me back, using the interactive psql shell:

With \l or \list
cgi=> \list
ERROR: parser: parse error at or near "("

with \d

cgi=> \d some_table
ERROR: parser: parse error at or near "."

Select, update, insert... Those commands seems to do ok, but no \commands
seems to work.

Does someone know what can be wrong with this?

Thanks

J"Poitras



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

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:21 PM
Tom Lane
 
Posts: n/a
Default Re: \list

Jos <jos@martiens.net> writes:
> I'm quite new to PSQL , trying to list all tables available in a db called
> "cgi" and here's what psql gives me back, using the interactive psql shell:


> With \l or \list
> cgi=> \list
> ERROR: parser: parse error at or near "("


> with \d


> cgi=> \d some_table
> ERROR: parser: parse error at or near "."


I think you are using a psql client that is much newer than the server
you are speaking to. Generally you want to use a psql of the same
version as the server ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 10:21 PM
Michael Fuhr
 
Posts: n/a
Default Re: \list

On Thu, Dec 01, 2005 at 12:08:23PM -0500, Jos wrote:
> I'm quite new to PSQL , trying to list all tables available in a db called
> "cgi" and here's what psql gives me back, using the interactive psql shell:
>
> With \l or \list
> cgi=> \list
> ERROR: parser: parse error at or near "("


Do your client and server versions differ? What does "psql --version"
show from the command line, and what does "SELECT version();" show from
within psql?

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com