postgresql@xxxxxxxxxxxxxxxxxx writes: > Den 15. juli 2017 23:15, skrev Tom Lane: >> Perhaps you could make your PK be on (id, valid_from, valid_to). > Doesn't really work because valid_to would change on UPDATE. I'd need to > update foreign relations with another trigger which would be very ugly. Um ... wouldn't ON UPDATE CASCADE help? regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general