IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL
Apache License 2.0
292 stars 161 forks source link

Fix: docker snapshot restoration #1776

Closed sgillespie closed 3 months ago

sgillespie commented 4 months ago

Description

This fixes multiple issues with snapshot restoration in Docker:

ERROR:  cannot drop objects owned by role postgres because they are required by the database system

and

pg_restore: [archiver] unsupported version (1.14) in file header

Checklist

Migrations

If there is a breaking change, especially a big one, please add a justification here. Please elaborate more what the migration achieves, what it cannot achieve or why a migration is not possible.

sgillespie commented 4 months ago

Note that, once this is merged, we'll probably need to backport and release to at least 13.3 and 13.2