Slide 4
Slide 4 text
● add_check_constraint
○ CREATE TABLE "posts" ("id" bigserial primary key, "title"
character varying);
○ ALTER TABLE "posts" ADD CONSTRAINT posts_const
CHECK (char_length(title) >= 5) NOT VALID;
● check_constraint
○ CREATE TABLE "comments" ("id" bigserial primary key,
"body" text, CONSTRAINT comments_const CHECK
(char_length(body) >= 5) NOT VALID);
発行されていた SQL
https://gist.github.com/yahonda/7e61f3f71
681cfa03111fed55714b0b4