Skip site navigation (1) Skip section navigation (2)

Delete oid causing problems

From: "rai lalit" <rai_l(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: rai_l(at)hotmail(dot)com
Subject: Delete oid causing problems
Date: 2001-06-06 16:03:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Hi all,
   I am trying to delete a record which had one of the fields as oid.
I was able to delete all the records except for 3.
I tried:
select lo_unlink(64445) from tablename
And then:
delete from tablename where id=1;

it worked
But for 3 records the delete command goes in hang.

on executing:
select lo_unlink(67787) from tablename

it gives:
(2 rows)
and on deleting with the delete command it goes on hang.

I want to drop the same table but can't do that either.
I want to create another table with the same name.

Any help would be appreciated.

Thanks in advance,

Get Your Private, Free E-mail from MSN Hotmail at

pgsql-hackers by date

Next:From: Alessio BragadiniDate: 2001-06-06 16:08:15
Subject: Re: Strange error, probably WAL-related
Previous:From: Tom LaneDate: 2001-06-06 15:58:49
Subject: Re: SQL( "if ...exists...),how to do it in the PostgreSQL?

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group