Postgres Alter Tabla Agregar clave primaria
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
The Rambling Lank
-- To set a column as primary key:
ALTER TABLE distributors ADD PRIMARY KEY (tablename);
ALTER TABLE table_name ADD PRIMARY KEY (column_1, column_2);