Re: Unable to delete rows...

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: Unable to delete rows...
Дата
Msg-id Pine.LNX.4.44.0303281917260.6803-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на Unable to delete rows...  (KroK <krok@void.ru>)
Список 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 по дате отправления:

Предыдущее
От: KroK
Дата:
Сообщение: Unable to delete rows...
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #923: psql can't read file prepaired by pg_dumpall