method

set_constraints

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

set_constraints(deferred, *constraints)
public

Set when constraints will be checked for the current transaction.

Not passing any specific constraint names will set the value for all deferrable constraints.

deferred

Valid values are :deferred or :immediate.

See www.postgresql.org/docs/current/sql-set-constraints.html