postgres create database composite primary key code example Example: postgres composite primary key PRIMARY KEY(pk_1, pk_2, ..., pk_n)