Revert "Normalize unique key constraint errors for identity columns"

This reverts commit f1b61aa7e2.
issue/6694
Gokhan Gulbiz 2023-03-27 19:51:24 +03:00
parent 5457b44232
commit a718ab0db4
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
2 changed files with 2 additions and 5 deletions

View File

@ -307,6 +307,3 @@ s/(NOTICE: issuing SET LOCAL application_name TO 'citus_rebalancer gpid=)[0-9]+
# shard_rebalancer output, flaky improvement number
s/improvement of 0.1[0-9]* is lower/improvement of 0.1xxxxx is lower/g
# normalize unique key constraint errors for identity columns
s/^(ERROR: duplicate key value violates unique constraint "\w+)_([0-9])+"/\1_xxxxxx"/g

View File

@ -359,7 +359,7 @@ ERROR: cannot insert a non-DEFAULT value into column "color_id"
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
HINT: Use OVERRIDING SYSTEM VALUE to override.
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
ERROR: duplicate key value violates unique constraint "color_color_id_key_xxxxxx"
ERROR: duplicate key value violates unique constraint "color_color_id_key_102033"
DETAIL: Key (color_id)=(1) already exists.
CONTEXT: while executing command on localhost:xxxxx
-- update null or custom value
@ -388,7 +388,7 @@ ERROR: cannot insert a non-DEFAULT value into column "color_id"
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
HINT: Use OVERRIDING SYSTEM VALUE to override.
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
ERROR: duplicate key value violates unique constraint "color_color_id_key_xxxxxx"
ERROR: duplicate key value violates unique constraint "color_color_id_key_102033"
DETAIL: Key (color_id)=(1) already exists.
CONTEXT: while executing command on localhost:xxxxx
-- update null or custom value