Add Foreign Key Constraint Without A Full Lock
alter table books
add constraint fk_books_authors
foreign key (author_id)
references authors(id)
not valid;alter table books validate constraint fk_books_authors;Last updated
alter table books
add constraint fk_books_authors
foreign key (author_id)
references authors(id)
not valid;alter table books validate constraint fk_books_authors;Last updated