2024-01-03 17:29:10.647 WAT [11497] LOG: checkpoint complete: wrote 0 buffers (0.0%); 0 WAL file(s) added, 0 removed, 134 recycled; write=0.019 s, sync=0.001 s, total=0.175 s; sync files=0, longest=0.000 s, average=0.000 s; distance=2196331 kB, estimate=2198084 kB
2024-01-03 17:32:53.261 WAT [305] ERROR: could not create unique index "uix_votes_hashes_index"
2024-01-03 17:32:53.261 WAT [305] DETAIL: Key (tx_hash, block_hash)=(6ad77b63e7df9b66ca513b49b6e3c1fa7af62d5d72e290a9d2731214eaa12a85, 0000003c7c7cd1d990c5918e7b23b2d5e1ca397095d93b83e14997d0f7c6c15c) is duplicated.
2024-01-03 17:32:53.261 WAT [305] STATEMENT: CREATE UNIQUE INDEX uix_votes_hashes_index ON votes(tx_hash, block_hash);
2024-01-03 17:32:53.261 WAT [97569] ERROR: could not create unique index "uix_votes_hashes_index"
2024-01-03 17:32:53.261 WAT [97569] DETAIL: Key (tx_hash, block_hash)=(6ad77b63e7df9b66ca513b49b6e3c1fa7af62d5d72e290a9d2731214eaa12a85, 0000003c7c7cd1d990c5918e7b23b2d5e1ca397095d93b83e14997d0f7c6c15c) is duplicated.
2024-01-03 17:32:53.261 WAT [97569] CONTEXT: parallel worker
2024-01-03 17:32:53.261 WAT [97569] STATEMENT: CREATE UNIQUE INDEX uix_votes_hashes_index ON votes(tx_hash, block_hash);
2024-01-03 17:32:53.268 WAT [306] FATAL: terminating background worker "parallel worker" due to administrator command
2024-01-03 17:32:53.268 WAT [306] STATEMENT: CREATE UNIQUE INDEX uix_votes_hashes_index ON votes(tx_hash, block_hash);
Some time ago, I tried to sync dcrdata but encountered many issues, I even had to start afresh after my first attempt to fix it didn't work.
PG version: 15
OS: MacOS
votestable: This prevented creating a UNIQUE indexuix_votes_hashes_indexontx_hash, block_hash.dcrdata error:
Details
Postgres log:
Details
missestable: This prevented creating a UNIQUE indexuix_misses_hashes_indexonticket_hash, block_hash.dcrdata error:
Details
Postgres log:
Details
treasurytable: This prevented creating a UNIQUE indexuix_treasury_tx_hashontx_hash, block_hashDetails
Postgres log:
Details
I have a working suggestion that fixes these issues and will submit it as a PR.