"snapshot too large" error when initializing logical replication (9.4) - Mailing list pgsql-hackers

From Steve Singer
Subject "snapshot too large" error when initializing logical replication (9.4)
Date
Msg-id BLU437-SMTP100EC1797A336DB6763B10ADC900@phx.gbl
Whole thread Raw
Responses Re: "snapshot too large" error when initializing logical replication (9.4)
List pgsql-hackers
I sometimes get the error "snapshot too large" from my logical 
replication walsender process when in response to a CREATE_REPLICATION_SLOT.

This is in SnapBuildExportSnapshot in snapbuild.c

newxcnt is 212 at that point

I have max_connections = 200

procArray->maxProcs=212

Should we be testing
newxcnt > GetMaxSnapshotXidCount()

instead of
newxcnt >= GetMaxSnapshotXidCount()







pgsql-hackers by date:

Previous
From: Haribabu Kommi
Date:
Subject: Possible problem with shm_mq spin lock
Next
From: Steve Singer
Date:
Subject: logical decoding - reading a user catalog table