Skip to content

New Rule: require-timeout-settings

Choose a tag to compare

@sbdchd sbdchd released this 03 Oct 03:08
· 614 commits to master since this release
1a71748

Added

  • New rule: require-timeout-settings (#671)

    It's important to configure lock & statement timeouts to ensure safe migrations.
    See Safety Requirements

    So the following will error:

    alter table t add column c boolean;

    but this is okay:

    set lock_timeout = '1s';
    set statement_timeout = '5s';
    alter table t add column c boolean;

    If you've already configured timeouts for your migrations, you can safely
    ignore this rule.

Fixed

  • parser: pg18 like clause in create foreign table now parses (#666)

  • cli: parsing rule alises i.e., prefer-timestamptz and prefer-timestamp-tz both work. (#668)