Skip to content

pgcopydb list table-parts fails when filtering has been used to initialize the catalog #869

@dcupif

Description

@dcupif

When filtering has been used for a migration, pgcopydb list table-parts fails with:

# prior to running list table-parts we use filtering
pgcopydb clone --filters filter.ini ...

# at this point the catalog is initialized and list table-parts will fail
pgcopydb list table-parts --schema-name public --table-name pairs --split-tables-larger-than "50GB"

13:50:02.203 13886 INFO   Running pgcopydb version 0.17-1.pgdg22.04+1 from "/usr/bin/pgcopydb"
13:50:02.234 13886 INFO   Using work dir "/tmp/pgcopydb"
13:50:02.235 13886 INFO   Current filtering setup is: {"type":"SOURCE_FILTER_TYPE_NONE"}
13:50:02.235 13886 INFO   Catalog filtering setup is: {"type":"SOURCE_FILTER_TYPE_INCL","include-only-table":[{"schema":"public","name":"pairs"}]}
13:50:02.235 13886 ERROR  Catalogs at "/tmp/pgcopydb/schema/source.db" have been setup for a different filtering than the current command, see above for details
13:50:02.235 13886 ERROR  Failed to initialize pgcopydb internal catalogs

pgcopydb version: v0.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions