"Relation does not exist" error

From: Tuckheng <Tuckheng(at)vads(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: "Relation does not exist" error
Date: 2001-11-08 10:34:15
Message-ID: 086C73F91FD3D41182E80090275CD0BA01039CFC@exchange1.vads.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I encountered this error when trying to run a SELECT statement from within a
Perl program. Would appreciate if someone could help shed some light on what
may be causing this or how it can be resolved.

I have tried the exact same program on an older version of Linux (I believe
ver 6.x) and it works fine. The current Linux version is 7.x. Not sure if
the difference in version has any significance.

Have tried re-starting the Postgresql DB as well as the server itself but no
help.

Error is as below: (statement in blue is the SQL command constructed)
DBD::Pg::st execute failed: ERROR: Relation 'p' does not exist Please
contact system administrator SELECT s.siteaname, p.siteid, s.sitestatus,
p.probclass, p.duration, p.down, p.penalty, p.projid, p.custname,
p.servicetype from problemlog p, sitedetails s where p.custid = s.custid and
p.siteid = s.siteid and p.projid = s.projid and p.logstatus = 'Closed' and
upper(p.custid) like '%AIA%' union SELECT s.siteaname, p.siteid,
s.sitestatus, p.probclass, age(p.probresdatetime,p.probstadatetime),
age(p.servrestdatetime, p.probstadatetime),
age(p.servrestdatetime,p.probstadatetime),p.projid, p.custname,
p.servicetype from problemlog p, sitedetails s where p.custid = s.custid and
p.siteid = s.siteid and p.projid = s.projid and p.logstatus != 'Closed' and
upper(p.custid) like '%AIA%' order by p.projid, p.siteid, s.siteaname

Regards,
Tuck Heng
VADS BHD
03 - 7712 8330

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Schapachnik 2001-11-08 11:50:47 Re: Caching query plan...
Previous Message Janning Vygen 2001-11-08 10:05:56 Why is there no option -U with pg_dump?