Skip to main content

What it flags

Adding a column to an existing PostgreSQL table as SERIAL (including SMALLSERIAL and BIGSERIAL), as an identity or stored generated column, or with a default expression containing a function the checker treats as volatile. These additions can rewrite the table under an exclusive lock. The rule skips tables created earlier in the same migration unit and tables truncated earlier under a transaction in that unit. For default expressions, it skips constants, calls to known non-volatile functions such as now() when no other call is considered volatile, and expressions with unresolved placeholders.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: