]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: fix tests with master version of crdb
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 15:14:00 +0000 (17:14 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 15:41:45 +0000 (17:41 +0200)
commitf55ecc367390b3265570bc2e12e91dd40fe3179e
treecd67dbf8ef4ee4687ac20bd722d54117fb20ff14
parent849bc9419b733c31890c7f347a0328f1e64dffd2
test: fix tests with master version of crdb

The server version reported is 250300. Tests fail with the error:

    psycopg.errors.OperatorIntervention: this schema change is
    disallowed because table "execmany" is locked and this operation cannot
    automatically unlock the table

    DETAIL:  To unlock the table, execute `ALTER TABLE execmany SET (schema_locked = false);`

    After the schema change completes, we recommend setting it back to
    true with `ALTER TABLE execmany SET (schema_locked = true);`.

    HINT:  Locking the table improves changefeed performance; see
    https://www.cockroachlabs.com/docs/dev/changefeed-best-practices.html#lock-the-schema-on-changefeed-watched-tables
tests/_test_cursor.py