Consider the following tables:
CREATE TABLE test (id int primary key, test text); CREATE TABLE test_hist(id serial, id