Обсуждение: Fk fix for noaction update/delete

Поиск
Список
Период
Сортировка

Fk fix for noaction update/delete

От
Stephan Szabo
Дата:
    This should fix a bug where a row that was updated or
deleted that had another row inserted/updated to its old
value during the same statement or other statements before the
integrity check for noaction would incorrectly error.  This
could happen in deferred constraints or due to triggers or
functions. It's effectively a reworking of the previous patch that
did a not exists to instead do a separate check.


Вложения

Re: Fk fix for noaction update/delete

От
Bruce Momjian
Дата:
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Stephan Szabo wrote:
>
>     This should fix a bug where a row that was updated or
> deleted that had another row inserted/updated to its old
> value during the same statement or other statements before the
> integrity check for noaction would incorrectly error.  This
> could happen in deferred constraints or due to triggers or
> functions. It's effectively a reworking of the previous patch that
> did a not exists to instead do a separate check.
>

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: Fk fix for noaction update/delete

От
Bruce Momjian
Дата:
Patch applied.  Thanks.

---------------------------------------------------------------------------


Stephan Szabo wrote:
>
>     This should fix a bug where a row that was updated or
> deleted that had another row inserted/updated to its old
> value during the same statement or other statements before the
> integrity check for noaction would incorrectly error.  This
> could happen in deferred constraints or due to triggers or
> functions. It's effectively a reworking of the previous patch that
> did a not exists to instead do a separate check.
>

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026