Skip to content

[Bug]: ERROR: pgclone: could not import snapshot #9

@herwigg

Description

@herwigg

pgclone version

4.3.0

PostgreSQL version

18

Operating system

RHEL 9

Installation method

Built from source (make install)

Feature area

Table clone (pgclone_clone_table)

Sync or async?

Synchronous (foreground call)

What happened?

when cloning a schema I got the error: ERROR: pgclone: could not import snapshot 000000A6-000C4299-1 on source: ERROR: invalid snapshot identifier: "000000A6-000C4299-1"
and effectively, not all tables were copied.

Reproduction steps

itiniris_cl=> \timing
Timing is on.
itiniris_cl=> SELECT pgclone.schema(
itiniris_cl(>     'postgresql://00104529@<host alias>:5432/itiniris'
itiniris_cl(>     ,'itiniris'            -- schema to clone
itiniris_cl(>     ,true                  -- include table data);
itiniris_cl(> );
ERROR:  pgclone: could not import snapshot 000000A6-000C4299-1 on source: ERROR:  invalid snapshot identifier: "000000A6-000C4299-1"

Time: 8153325.487 ms (02:15:53.325)

PostgreSQL logs

from the postgres log on the master or target isntance:
2026-05-11 18:54:35.992 CEST [3943869] [local] itinirisuser@itiniris_cl/[unknown] STATEMENT:  CREATE INDEX IF NOT EXISTS perchildamount_payment_fk_i ON itiniris.per_child_amounts USING btree (payment_id)
2026-05-11 18:54:36.020 CEST [3943869] [local] itinirisuser@itiniris_cl/[unknown] LOG:  temporary file: path "base/pgsql_tmp/pgsql_tmp3943869.2.fileset/1.0", size 280887296
2026-05-11 18:54:36.020 CEST [3943869] [local] itinirisuser@itiniris_cl/[unknown] STATEMENT:  CREATE INDEX IF NOT EXISTS perchildamount_payment_fk_i ON itiniris.per_child_amounts USING btree (payment_id)
2026-05-11 18:54:36.029 CEST [3943869] [local] itinirisuser@itiniris_cl/[unknown] LOG:  duration: 26734.475 ms
2026-05-11 18:54:36.142 CEST [3908164] [local] itinirisuser@itiniris_cl/psql ERROR:  pgclone: could not import snapshot 000000A6-000C4299-1 on source: ERROR:  invalid snapshot identifier: "000000A6-000C4299-1"

pgclone_jobs_view (async only)

Additional context

No response

Pre-flight checks

  • I've redacted any passwords from connection strings and logs
  • I've checked existing issues for duplicates
  • This is not a security vulnerability (those go through SECURITY.md)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions