De truc is de CONSTRAINT deel in de column_constraint sectie van CREATE TABLE . Voorbeeld:
> create table x(xx text constraint xxxx primary key);
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "xxxx" for table "x"
CREATE TABLE
Dit werkt voor alle soorten beperkingen, inclusief PRIMARY KEY en UNIQUE .
Zie de documenten van CREATE TABLE voor details.