Re: Unable to delete rows... - Mailing list pgsql-bugs

From A.Bhuvaneswaran
Subject Re: Unable to delete rows...
Date
Msg-id Pine.LNX.4.44.0303281917260.6803-100000@Bhuvan.bksys.co.in
Whole thread Raw
In response to Unable to delete rows...  (KroK <krok@void.ru>)
List 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

pgsql-bugs by date:

Previous
From: KroK
Date:
Subject: Unable to delete rows...
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #923: psql can't read file prepaired by pg_dumpall