-- Fail upon insertion of a NULL ISOK_QUERIES.Comment INSERT INTO isok_queries ( iqname, error, type, keep -- , first_run, last_run , role, search_path, query, comment) VALUES('query2' , false , 'type1' , false , NULL , NULL , $$VALUES ('R4', 'Result number 4', NULL) , ('R5', 'Result number 5', NULL) , ('R6', 'Result number 6', NULL);$$ , NULL ); ERROR: null value in column "comment" of relation "isok_queries" violates not-null constraint DETAIL: Failing row contains (query2, f, type1, f, null, null, null, null, VALUES ('R4', 'Result number 4', NULL) , ('R5', ..., null).