$ ls /usr/lib/libboost_* -1
/usr/lib/libboost_atomic-mt.so
/usr/lib/libboost_atomic.so
/usr/lib/libboost_atomic.so.1.62.0
/usr/lib/libboost_chrono.a
/usr/lib/libboost_chrono-mt.so
/usr/lib/libboost_chrono.so
/usr/lib/libboost_chrono.so.1.62.0
SELECT 'documents' AS table, id, NULL AS iddoc FROM documents AS doc WHERE .... UNION SELECT 'paragraphs' AS table, id, iddoc FROM paragraphs WHERE ...;
SELECT * FROM test WHERE ARRAY[1,3,4,5] && (SELECT array_agg(elem::text::int) FROM jsonb_array_elements(params->'sex') AS elem);