INNER JOIN pg_catalog.pg_class rel ON rel.oid = con.conrelid INNER JOIN pg_catalog.pg_namespace nsp ON nsp.oid = connamespace ALTER TABLE products_ref_3 ADD CONSTRAINT products_ref_pkey PRIMARY ...
it's normal that some formulae cannot be translated to SQL. Constraints are checked in javascript as well. what is meant to happen is that if the constraint is created with an untranslatable formula, ...