Re: Unable to delete rows...

From: "A(dot)Bhuvaneswaran" <bhuvansql(at)myrealbox(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Unable to delete rows...
Date: 2003-03-28 13:48:57
Message-ID: Pine.LNX.4.44.0303281917260.6803-100000@Bhuvan.bksys.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> I'm Using PostgreSQL v. 7.3.2 on FreeBSD 4.7-RELEASE-p7.
>
> I was unable to delete several rows :
>
> void=> select * from banners where banner is NULL;
> id | count | max | banner_group | banner
> ----+-------+-------+--------------+--------
> 25 | 2328 | 10008 | 2 |
> 4 | 477 | 3336 | 33554438 |
> (2 rows)
>
> void=> delete from banners where banner is NULL;
> DELETE 0
> void=> select * from banners where banner is NULL;
> id | count | max | banner_group | banner
> ----+-------+-------+--------------+--------
> 25 | 2328 | 10008 | 2 |
> 4 | 477 | 3336 | 33554438 |
> (2 rows)
>

You must have triggers or rules on DELETE event which conflict the action.

regards,
bhuvaneswaran

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message himansu biswal 2003-03-28 16:06:40 can you solve my problem
Previous Message KroK 2003-03-28 10:22:30 Unable to delete rows...