Thread: native solutions for copying data between PG servers?

native solutions for copying data between PG servers?

From
Wells Oliver
Date:
Hi all: what are some native solutions (if any?) for copying data between PG servers? v12.3 if it matters.

I have some python scripts that select from views on A and dump into tables on B and it works well enough but I'd like to see if other solutions might work... a little faster.

Thanks.

--

Re: native solutions for copying data between PG servers?

From
Keith
Date:

On Fri, Jul 10, 2020 at 2:56 PM Wells Oliver <wells.oliver@gmail.com> wrote:
Hi all: what are some native solutions (if any?) for copying data between PG servers? v12.3 if it matters.

I have some python scripts that select from views on A and dump into tables on B and it works well enough but I'd like to see if other solutions might work... a little faster.

Thanks.

--


Take a look at the postgres_fdw. Basically makes the remote table(s) look like local tables. That's probably the easiest solution.


There's also logical replication, but that can be trickier to set up

 

Re: native solutions for copying data between PG servers?

From
Wells Oliver
Date:
Cool, I should have been more clear: definitely not a replication situation. Just a few views here and there I'd like copied...

On Fri, Jul 10, 2020 at 12:07 PM Keith <keith@keithf4.com> wrote:

On Fri, Jul 10, 2020 at 2:56 PM Wells Oliver <wells.oliver@gmail.com> wrote:
Hi all: what are some native solutions (if any?) for copying data between PG servers? v12.3 if it matters.

I have some python scripts that select from views on A and dump into tables on B and it works well enough but I'd like to see if other solutions might work... a little faster.

Thanks.

--


Take a look at the postgres_fdw. Basically makes the remote table(s) look like local tables. That's probably the easiest solution.


There's also logical replication, but that can be trickier to set up

 


--