There is a query executed via JDBC, for example:
INSERT INTO TableName( id, name, phone) VALUES ('1', 'new_name', '12345'); A record with this key already exists, and it occurs:
duplicate key value violates unique constraint "TableName_pkey" How to make a complete rewrite of the entire record, if a record with such a key already exists?
Thought it is possible to use: ON CONFLICT DO UPDATE but in this case it is necessary to specify which fields need to be updated. But you need to do a full rewrite of the string.