TimSC/pgmap

Reads should occur with Repeatable Read Isolation Level

TimSC opened this issue · 2 comments

TimSC commented

This prevents inconsistent reads and dumps? https://www.postgresql.org/docs/10/transaction-iso.html

TimSC commented

This seems to be related to the dreaded dump duplicate problem

ALTER TABLE "planet2_static_livenodes" ADD PRIMARY KEY (id);
ERROR:  could not create unique index "planet2_static_livenodes_pkey"
DETAIL:  Key (id)=(25982976) is duplicated.

Looks like we were getting "phantom reads"

TimSC commented

Dump fosm-planet_20190501174901.o5m.gz worked without any duplicates :)