Postgres menambahkan awalan ke kunci utama

CREATE TRIGGER test BEFORE INSERT ON name_of_table
FOR EACH ROW SET row_nanme = CONCAT('prefix-', primary_key);
The Rambling Lank