dbTalk Databases Forums  

[BUGS] 'pg_class_aclcheck: relation <oid> not found' with temp tables in

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


Discuss [BUGS] 'pg_class_aclcheck: relation <oid> not found' with temp tables in in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Reece Hart
 
Posts: n/a

Default [BUGS] 'pg_class_aclcheck: relation <oid> not found' with temp tables in - 10-14-2003 , 11:12 AM






Cheers-

I'm getting warnings like this in a pl/pgsql function:
ERROR: pg_class_aclcheck: relation 32523241 not found

The function is (this is, obviously, just to demonstrate the problem):
create or replace function temptest() returns void
language plpgsql as '
DECLARE
m integer;
n integer;
BEGIN
FOR m IN 1..10 LOOP
create temp table less_than_m as
select distinct pseq_id from pseq where pseq_id<m;
select into n count(*) from less_than_m;
raise notice ''there are % less than %'',n,m;
drop table less_than_m;
END LOOP;
END;';

I see one other report of a similar problem and Tom Lane replied
(http://archives.postgresql.org/pgsql.../msg00086.php), but I
don't understand the issue or his response. I tried to wrap the create
and drop in EXECUTE '...', but that didn't work.

Does anyone have a suggestion for how I might resolve this? I'd
appreciate a short description of the issue as well.

Thanks,
Reece

--
Reece Hart, Ph.D. rkh (AT) gene (DOT) com, http://www.gene.com/
Genentech, Inc. 650/225-6133 (voice), -5389 (fax)
Bioinformatics and Protein Engineering
1 DNA Way, MS-93 http://www.in-machina.com/~reece/
South San Francisco, CA 94080-4990 reece (AT) in-machina (DOT) com, GPG: 0x25EC91A0

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

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.