@@ -62,12 +62,12 @@ CREATE TABLE CHECK_TBL (x int,
6262INSERT INTO CHECK_TBL VALUES (5);
6363INSERT INTO CHECK_TBL VALUES (4);
6464INSERT INTO CHECK_TBL VALUES (3);
65- ERROR: new row for relation "check_tbl" violates CHECK constraint "check_con"
65+ ERROR: new row for relation "check_tbl" violates check constraint "check_con"
6666INSERT INTO CHECK_TBL VALUES (2);
67- ERROR: new row for relation "check_tbl" violates CHECK constraint "check_con"
67+ ERROR: new row for relation "check_tbl" violates check constraint "check_con"
6868INSERT INTO CHECK_TBL VALUES (6);
6969INSERT INTO CHECK_TBL VALUES (1);
70- ERROR: new row for relation "check_tbl" violates CHECK constraint "check_con"
70+ ERROR: new row for relation "check_tbl" violates check constraint "check_con"
7171SELECT '' AS three, * FROM CHECK_TBL;
7272 three | x
7373-------+---
@@ -82,13 +82,13 @@ CREATE TABLE CHECK2_TBL (x int, y text, z int,
8282 CHECK (x > 3 and y <> 'check failed' and z < 8));
8383INSERT INTO CHECK2_TBL VALUES (4, 'check ok', -2);
8484INSERT INTO CHECK2_TBL VALUES (1, 'x check failed', -2);
85- ERROR: new row for relation "check2_tbl" violates CHECK constraint "sequence_con"
85+ ERROR: new row for relation "check2_tbl" violates check constraint "sequence_con"
8686INSERT INTO CHECK2_TBL VALUES (5, 'z check failed', 10);
87- ERROR: new row for relation "check2_tbl" violates CHECK constraint "sequence_con"
87+ ERROR: new row for relation "check2_tbl" violates check constraint "sequence_con"
8888INSERT INTO CHECK2_TBL VALUES (0, 'check failed', -2);
89- ERROR: new row for relation "check2_tbl" violates CHECK constraint "sequence_con"
89+ ERROR: new row for relation "check2_tbl" violates check constraint "sequence_con"
9090INSERT INTO CHECK2_TBL VALUES (6, 'check failed', 11);
91- ERROR: new row for relation "check2_tbl" violates CHECK constraint "sequence_con"
91+ ERROR: new row for relation "check2_tbl" violates check constraint "sequence_con"
9292INSERT INTO CHECK2_TBL VALUES (7, 'check ok', 7);
9393SELECT '' AS two, * from CHECK2_TBL;
9494 two | x | y | z
@@ -107,7 +107,7 @@ CREATE TABLE INSERT_TBL (x INT DEFAULT nextval('insert_seq'),
107107 CONSTRAINT INSERT_CON CHECK (x >= 3 AND y <> 'check failed' AND x < 8),
108108 CHECK (x + z = 0));
109109INSERT INTO INSERT_TBL(x,z) VALUES (2, -2);
110- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
110+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
111111SELECT '' AS zero, * FROM INSERT_TBL;
112112 zero | x | y | z
113113------+---+---+---
@@ -120,13 +120,13 @@ SELECT 'one' AS one, nextval('insert_seq');
120120(1 row)
121121
122122INSERT INTO INSERT_TBL(y) VALUES ('Y');
123- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
123+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
124124INSERT INTO INSERT_TBL(y) VALUES ('Y');
125125INSERT INTO INSERT_TBL(x,z) VALUES (1, -2);
126- ERROR: new row for relation "insert_tbl" violates CHECK constraint "$1"
126+ ERROR: new row for relation "insert_tbl" violates check constraint "$1"
127127INSERT INTO INSERT_TBL(z,x) VALUES (-7, 7);
128128INSERT INTO INSERT_TBL VALUES (5, 'check failed', -5);
129- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
129+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
130130INSERT INTO INSERT_TBL VALUES (7, '!check failed', -7);
131131INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
132132SELECT '' AS four, * FROM INSERT_TBL;
@@ -139,9 +139,9 @@ SELECT '' AS four, * FROM INSERT_TBL;
139139(4 rows)
140140
141141INSERT INTO INSERT_TBL(y,z) VALUES ('check failed', 4);
142- ERROR: new row for relation "insert_tbl" violates CHECK constraint "$1"
142+ ERROR: new row for relation "insert_tbl" violates check constraint "$1"
143143INSERT INTO INSERT_TBL(x,y) VALUES (5, 'check failed');
144- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
144+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
145145INSERT INTO INSERT_TBL(x,y) VALUES (5, '!check failed');
146146INSERT INTO INSERT_TBL(y) VALUES ('-!NULL-');
147147SELECT '' AS six, * FROM INSERT_TBL;
@@ -162,7 +162,7 @@ SELECT 'seven' AS one, nextval('insert_seq');
162162(1 row)
163163
164164INSERT INTO INSERT_TBL(y) VALUES ('Y');
165- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
165+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
166166SELECT 'eight' AS one, currval('insert_seq');
167167 one | currval
168168-------+---------
@@ -193,11 +193,11 @@ CREATE TABLE INSERT_CHILD (cx INT default 42,
193193 INHERITS (INSERT_TBL);
194194INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,11);
195195INSERT INTO INSERT_CHILD(x,z,cy) VALUES (7,-7,6);
196- ERROR: new row for relation "insert_child" violates CHECK constraint "insert_child_cy"
196+ ERROR: new row for relation "insert_child" violates check constraint "insert_child_cy"
197197INSERT INTO INSERT_CHILD(x,z,cy) VALUES (6,-7,7);
198- ERROR: new row for relation "insert_child" violates CHECK constraint "$1"
198+ ERROR: new row for relation "insert_child" violates check constraint "$1"
199199INSERT INTO INSERT_CHILD(x,y,z,cy) VALUES (6,'check failed',-6,7);
200- ERROR: new row for relation "insert_child" violates CHECK constraint "insert_con"
200+ ERROR: new row for relation "insert_child" violates check constraint "insert_con"
201201SELECT * FROM INSERT_CHILD;
202202 x | y | z | cx | cy
203203---+--------+----+----+----
@@ -227,7 +227,7 @@ SELECT '' AS three, * FROM INSERT_TBL;
227227INSERT INTO INSERT_TBL SELECT * FROM tmp WHERE yd = 'try again';
228228INSERT INTO INSERT_TBL(y,z) SELECT yd, -7 FROM tmp WHERE yd = 'try again';
229229INSERT INTO INSERT_TBL(y,z) SELECT yd, -8 FROM tmp WHERE yd = 'try again';
230- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
230+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
231231SELECT '' AS four, * FROM INSERT_TBL;
232232 four | x | y | z
233233------+---+---------------+----
@@ -246,7 +246,7 @@ UPDATE INSERT_TBL SET x = NULL WHERE x = 5;
246246UPDATE INSERT_TBL SET x = 6 WHERE x = 6;
247247UPDATE INSERT_TBL SET x = -z, z = -x;
248248UPDATE INSERT_TBL SET x = z, z = x;
249- ERROR: new row for relation "insert_tbl" violates CHECK constraint "insert_con"
249+ ERROR: new row for relation "insert_tbl" violates check constraint "insert_con"
250250SELECT * FROM INSERT_TBL;
251251 x | y | z
252252---+---------------+----
@@ -273,7 +273,7 @@ SELECT '' AS two, * FROM COPY_TBL;
273273(2 rows)
274274
275275COPY COPY_TBL FROM '@abs_srcdir@/data/constrf.data';
276- ERROR: new row for relation "copy_tbl" violates CHECK constraint "copy_con"
276+ ERROR: new row for relation "copy_tbl" violates check constraint "copy_con"
277277CONTEXT: COPY FROM, line 2
278278SELECT * FROM COPY_TBL;
279279 x | y | z
@@ -290,11 +290,11 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "primary_tbl_pkey
290290INSERT INTO PRIMARY_TBL VALUES (1, 'one');
291291INSERT INTO PRIMARY_TBL VALUES (2, 'two');
292292INSERT INTO PRIMARY_TBL VALUES (1, 'three');
293- ERROR: duplicate key violates UNIQUE constraint "primary_tbl_pkey"
293+ ERROR: duplicate key violates unique constraint "primary_tbl_pkey"
294294INSERT INTO PRIMARY_TBL VALUES (4, 'three');
295295INSERT INTO PRIMARY_TBL VALUES (5, 'one');
296296INSERT INTO PRIMARY_TBL (t) VALUES ('six');
297- ERROR: null value for attribute "i" violates NOT NULL constraint
297+ ERROR: null value in column "i" violates not-null constraint
298298SELECT '' AS four, * FROM PRIMARY_TBL;
299299 four | i | t
300300------+---+-------
@@ -314,7 +314,7 @@ INSERT INTO PRIMARY_TBL VALUES (1, 'three');
314314INSERT INTO PRIMARY_TBL VALUES (4, 'three');
315315INSERT INTO PRIMARY_TBL VALUES (5, 'one');
316316INSERT INTO PRIMARY_TBL (t) VALUES ('six');
317- ERROR: null value for attribute "i" violates NOT NULL constraint
317+ ERROR: null value in column "i" violates not-null constraint
318318SELECT '' AS three, * FROM PRIMARY_TBL;
319319 three | i | t
320320-------+---+-------
@@ -334,7 +334,7 @@ NOTICE: CREATE TABLE / UNIQUE will create implicit index "unique_tbl_i_key" for
334334INSERT INTO UNIQUE_TBL VALUES (1, 'one');
335335INSERT INTO UNIQUE_TBL VALUES (2, 'two');
336336INSERT INTO UNIQUE_TBL VALUES (1, 'three');
337- ERROR: duplicate key violates UNIQUE constraint "unique_tbl_i_key"
337+ ERROR: duplicate key violates unique constraint "unique_tbl_i_key"
338338INSERT INTO UNIQUE_TBL VALUES (4, 'four');
339339INSERT INTO UNIQUE_TBL VALUES (5, 'one');
340340INSERT INTO UNIQUE_TBL (t) VALUES ('six');
@@ -358,7 +358,7 @@ INSERT INTO UNIQUE_TBL VALUES (1, 'one');
358358INSERT INTO UNIQUE_TBL VALUES (2, 'two');
359359INSERT INTO UNIQUE_TBL VALUES (1, 'three');
360360INSERT INTO UNIQUE_TBL VALUES (1, 'one');
361- ERROR: duplicate key violates UNIQUE constraint "unique_tbl_i_key"
361+ ERROR: duplicate key violates unique constraint "unique_tbl_i_key"
362362INSERT INTO UNIQUE_TBL VALUES (5, 'one');
363363INSERT INTO UNIQUE_TBL (t) VALUES ('six');
364364SELECT '' AS five, * FROM UNIQUE_TBL;
0 commit comments