-- Fail upon insertion of a ISOK_QUERIES.Type that is not on IQ_TYPES. INSERT INTO isok_queries ( iqname, error, type, keep -- , first_run, last_run , role, search_path, query, comment) VALUES('query2' , false , 'Non-existant type' , false , NULL , NULL , $$VALUES ('R4', 'Result number 4', NULL) , ('R5', 'Result number 5', NULL) , ('R6', 'Result number 6', NULL);$$ , 'No comment' );