Re: error on drop table - Mailing list pgsql-general

From Joseph Shraibman
Subject Re: error on drop table
Date
Msg-id 3C057DFC.7050101@selectacast.net
Whole thread Raw
In response to error on drop table  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: error on drop table
List pgsql-general
To reproduce:

create table table1 ( list text, ukey int);
insert into table1 values( '1', 1);
insert into table1 values( '2', 2);
insert into table1 values( '3', 3);
insert into table1 values( '4', 4);
insert into table1 values( '5', 5);

  SELECT list,ukey INTO temporary tqt  FROM table1;
BEGIN;
  DECLARE cname CURSOR FOR SELECT list, ukey  FROM tqt ;
FETCH 10 from cname;
DROP TABLE tqt;
END;

Tom Lane wrote:

> Joseph Shraibman <jks@selectacast.net> writes:
>
>>NOTICE:  FlushRelationBuffers(tqt, 0): block 0 is referenced (private 1, global 1)
>>ERROR:  heap_drop_with_catalog: FlushRelationBuffers returned -2
>>
>
> Hmm, can you provide a sequence to reproduce this?
>
>             regards, tom lane
>


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com


pgsql-general by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: error on drop table
Next
From: "Roderick A. Anderson"
Date:
Subject: Warm Fuzzy Feeling!