Thread: pgsql/src/backend/utils/adt ri_triggers.c

pgsql/src/backend/utils/adt ri_triggers.c

From
momjian@postgresql.org (Bruce Momjian - CVS)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    momjian@postgresql.org    02/07/30 12:33:21

Modified files:
    src/backend/utils/adt: ri_triggers.c

Log message:
    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.

    Stephan Szabo