I want to create a Primary Key on a table with 6 Million records, but when I execute this:
ALTER TABLE schema_name.table_name ADD CONSTRAINT pkey_name PRIMARY KEY (field_pkey_name);
It's locking my table and alter table does not finish executing...