Search Postgresql Archives

Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PFC <lists@xxxxxxxxxxxxxxxxxxxxx> writes:
> 	I've traced it to the following query to get information about the  
> database :

> SELECT pdb.datname AS datname, pu.usename AS datowner,  
> pg_encoding_to_char(encoding) AS datencoding,
> (SELECT description FROM pg_description pd WHERE pdb.oid=pd.objoid) AS  
> datcomment,
> (SELECT spcname FROM pg_catalog.pg_tablespace pt WHERE  
> pt.oid=pdb.dattablespace) AS tablespace
>  FROM pg_database pdb, pg_user pu
> WHERE pdb.datdba = pu.usesysid AND NOT pdb.datistemplate
> ORDER BY pdb.datname;

Works for me.

> 	This query looks right to me and pg 8.0.0 does it fine, while 8.0.1-r3  
> says :
> Error : Unexpected right parenthesis.

Hmm; the only occurrence of that string in the sources is in
nodes/read.c, which AFAIK would never be invoked for a query entered
straight from the client.  What could trigger it would be trying to
read a rule that is misformatted for some reason.  Maybe you have
a damaged pg_user view definition --- does "select * from pg_user"
fail the same way?

			regards, tom lane

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

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux