Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: PFC <lists(at)boutiquenumerique(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin
Date: 2005-04-10 16:27:55
Message-ID: 28689.1113150475@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

PFC <lists(at)boutiquenumerique(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Florin Andrei 2005-04-10 19:10:22 grant all privileges to all tables in a database
Previous Message Tony Caduto 2005-04-10 14:37:13 Re: pg 8.0.1-r3 killls pgadmin3 and phppgadmin

Browse pgsql-sql by date

  From Date Subject
Next Message Ragnar Hafstað 2005-04-10 17:29:04 Re: subselect query time and loops problem
Previous Message pankaj naug 2005-04-10 14:54:29 Re: subselect query time and loops problem