diff options
author | Amit Kapila <akapila@postgresql.org> | 2020-01-28 07:48:10 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2020-01-28 07:48:10 +0530 |
commit | 05f18c6b6b6e4b44302ee20a042cedc664532aa2 (patch) | |
tree | 312f27295ec5e9623b517bb61550b76a4df093e0 /src/test/regress/expected/create_table.out | |
parent | ff8ca5fadd819155c82bd16fcc6b7231af649cf8 (diff) | |
download | postgresql-05f18c6b6b6e4b44302ee20a042cedc664532aa2.tar.gz |
Added relation name in error messages for constraint checks.
This gives more information to the user about the error and it makes such
messages consistent with the other similar messages in the code.
Reported-by: Simon Riggs
Author: Mahendra Singh and Simon Riggs
Reviewed-by: Beena Emerson and Amit Kapila
Discussion: https://postgr.es/m/CANP8+j+7YUvQvGxTrCiw77R23enMJ7DFmyA3buR+fa2pKs4XhA@mail.gmail.com
Diffstat (limited to 'src/test/regress/expected/create_table.out')
-rw-r--r-- | src/test/regress/expected/create_table.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/expected/create_table.out b/src/test/regress/expected/create_table.out index b64f91955d..c5e95edbed 100644 --- a/src/test/regress/expected/create_table.out +++ b/src/test/regress/expected/create_table.out @@ -955,7 +955,7 @@ CREATE TABLE part_c_1_10 PARTITION OF part_c FOR VALUES FROM (1) TO (10); create table parted_notnull_inh_test (a int default 1, b int not null default 0) partition by list (a); create table parted_notnull_inh_test1 partition of parted_notnull_inh_test (a not null, b default 1) for values in (1); insert into parted_notnull_inh_test (b) values (null); -ERROR: null value in column "b" violates not-null constraint +ERROR: null value in column "b" of relation "parted_notnull_inh_test1" violates not-null constraint DETAIL: Failing row contains (1, null). -- note that while b's default is overriden, a's default is preserved \d parted_notnull_inh_test1 |