Re: How to create directory format backup

From: Andrus <kobruleht2(at)hot(dot)ee>
To: Erik Wienhold <ewie(at)ewie(dot)name>, depesz(at)depesz(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to create directory format backup
Date: 2023-02-08 21:37:26
Message-ID: 6422167c-c725-d305-5ee5-d16f310e7fc7@hot.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

>> How to create backup in format from which tables can selectively restored?
> Dump as custom-format archive (-F custom) and use that with pg_restore and
> options --table or --list/--use-list to select what should be restored.

How to select tables interactively like pgAdmin allows to select when
directory format is used ?

Database contains hundreds of schemas. I need to restore public and
other other schema.

Whole backup file is scanned to restore only two schemas. It takes lot
of time.

Also directory format allows to use all cores with --jobs=32 parameter.
Dump and partial restore using custom format are much slower.

Andrus.

> --
> Erik

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Siddharth Jain 2023-02-08 22:14:46 Re: How to use the BRIN index properly?
Previous Message Christophe Pettus 2023-02-08 21:20:05 Re: How to use the BRIN index properly?