From: Marcin Borkowski <mbork@mbork.pl>
To: pgsql-general@lists.postgresql.org
Subject: A few questions about foreign tables
Date: Wed, 18 Oct 2023 10:24:04 +0200
Message-ID: <87bkcws5i3.fsf@mbork.pl> (raw)
Hello,
I want to set up a few foreign tables (to access tables from one
PostgreSQL database in another one). However, I want to do it
"properly", using a database migration tool, so I need to have a "down"
migration to revert to the previous state.
How to revert the effect of "import foreign schema"? Is just dropping
the imported tables enough?
Also, how can I check the definitions (i.e., what tables on the server
they correspond to) of existing foreign tables?
(May I ask to be cc'd since I'm not subscribed to the list?)
TIA,
--
Marcin Borkowski
http://mbork.pl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: mbork@mbork.pl
Subject: Re: A few questions about foreign tables
In-Reply-To: <87bkcws5i3.fsf@mbork.pl>
References: <87bkcws5i3.fsf@mbork.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox