pgsql: When a row fails a not-null constraint, show row's contents in e

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When a row fails a not-null constraint, show row's contents in e
Date: 2011-11-29 23:29:34
Message-ID: E1RVX7G-0005TI-4k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

When a row fails a not-null constraint, show row's contents in errdetail.

Simple extension of previous patch for CHECK constraints.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f225e4bc54df77e766b0edcffacb865648b099a3

Modified Files
--------------
src/backend/executor/execMain.c | 4 +++-
src/test/regress/expected/alter_table.out | 10 ++++++++++
src/test/regress/expected/domain.out | 4 ++++
src/test/regress/expected/inherit.out | 1 +
src/test/regress/expected/insert.out | 1 +
src/test/regress/expected/sequence.out | 1 +
src/test/regress/expected/sequence_1.out | 1 +
src/test/regress/output/constraints.source | 2 ++
8 files changed, 23 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-11-30 00:12:39 pgsql: In docs, suggest "-O0 -g" only if using a debugger.
Previous Message Bruce Momjian 2011-11-29 21:35:18 Re: Allow pg_dumpall to use dumpmem.c functions, simplify exit code