Re: Option to dump foreign data in pg_dump

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Luis Carril <luis(dot)carril(at)swarm64(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Option to dump foreign data in pg_dump
Date: 2019-06-28 15:17:01
Message-ID: 9FABF670-7F3B-4FDD-9D73-0EABF785C8DB@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 28 Jun 2019, at 16:49, Luis Carril <luis(dot)carril(at)swarm64(dot)com> wrote:

> pg_dump ignores the dumping of data in foreign tables
> on purpose, this patch makes it optional as the user maybe
> wants to manage the data in the foreign servers directly from
> Postgres. Opinions?

Wouldn’t that have the potential to make restores awkward for FDWs that aren’t
writeable? Basically, how can the risk of foot-gunning be minimized to avoid
users ending up with dumps that are hard to restore?

cheers ./daniel

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-06-28 15:17:45 Re: subscriptionCheck failures on nightjar
Previous Message Pavel Stehule 2019-06-28 15:16:14 Re: Option to dump foreign data in pg_dump