Portál AbcLinuxu, 2. června 2024 14:54


Dotaz: PostgreSQL EXTENSION TimescaleDB

3.3.2022 14:35 zipi | skóre: 21
PostgreSQL EXTENSION TimescaleDB
Přečteno: 2268×
Odpovědět | Admin
Zdravím, řeším zálohování databáze, která ještě používá EXTENSION TimescaleDB. Exportovat databázi jsem schopen pomocí pg_admin, ale jenom tabulky, které nepoužívají extension. Neřešil to někdo už z Vás .?
Použil jsem příkaz: pg_dump -Fc -U data -f data.dump -d data

pg_dump: warning: there are circular foreign-key constraints on this table:
pg_dump:   hypertable
pg_dump: You might not be able to restore the dump without using --disable-triggers or temporarily dropping the constraints.
pg_dump: Consider using a full dump instead of a --data-only dump to avoid this problem.
pg_dump: warning: there are circular foreign-key constraints on this table:
pg_dump:   chunk
pg_dump: You might not be able to restore the dump without using --disable-triggers or temporarily dropping the constraints.
pg_dump: Consider using a full dump instead of a --data-only dump to avoid this problem.
pg_dump: NOTICE:  hypertable data are in the chunks, no data will be copied
DETAIL:  Data for hypertables are stored in the chunks of a hypertable so COPY TO of a hypertable will not copy any data.
HINT:  Use "COPY (SELECT * FROM "hypertable") TO ..." to copy all data in hypertable, or copy each chunk individually.
pg_dump: NOTICE:  hypertable data are in the chunks, no data will be copied
DETAIL:  Data for hypertables are stored in the chunks of a hypertable so COPY TO of a hypertable will not copy any data.
HINT:  Use "COPY (SELECT * FROM "hypertable") TO ..." to copy all data in hypertable, or copy each chunk individually.


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

29.3.2022 09:11 zekor
Rozbalit Rozbalit vše Re: PostgreSQL EXTENSION TimescaleDB
Odpovědět | | Sbalit | Link | Blokovat | Admin
Také jsem na to narazil. Zálohuji pomocí https://www.abclinuxu.cz/clanky/zalohovani-a-obnova-postgresql-metodou-pitr-point-in-time-recovery.
16.8.2022 12:11 lazywriter
Rozbalit Rozbalit vše Re: PostgreSQL EXTENSION TimescaleDB
Odpovědět | | Sbalit | Link | Blokovat | Admin
Dokumentace:

https://docs.timescale.com/timescaledb/latest/how-to-guides/backup-and-restore/pg-dump-and-restore/#back-up-individual-hypertables https://docs.timescale.com/timescaledb/latest/how-to-guides/backup-and-restore/troubleshooting/#troubleshoot-errors-when-running-pg-dump

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.