Re: partial data migration

2019-03-07 Thread Adrian Klaver
On 3/7/19 5:53 PM, Julie Nishimura wrote: Thank you Ron! What if dev environment is on 9.6, but prod is on version 8.3? Will posgtres_fdw still be the right option? Thanks to the documentation writers: https://www.postgresql.org/docs/11/postgres-fdw.html#id-1.11.7.42.15 Sent from my iPhone

Re: partial data migration

2019-03-07 Thread Julie Nishimura
grate from 8 to 9? Thanks From: Ron <mailto:ronljohnso...@gmail.com> Sent: Thursday, March 7, 2019 5:59 PM To: pgsql-general@lists.postgresql.org<mailto:pgsql-general@lists.postgresql.org> Subject: Re: partial data migration (8.3? That's even older than what we just migrated f

Re: partial data migration

2019-03-07 Thread Ron
5:59 PM *To:* pgsql-general@lists.postgresql.org *Subject:* Re: partial data migration (8.3?  That's even older than what we just migrated from!!!) No.  Make some views (I'd probably make them "month-sized"), COPY each view from the source db to a file, and then COPY each fi

Re: partial data migration

2019-03-07 Thread Julie Nishimura
, 2019 5:59 PM To: pgsql-general@lists.postgresql.org Subject: Re: partial data migration (8.3? That's even older than what we just migrated from!!!) No. Make some views (I'd probably make them "month-sized"), COPY each view from the source db to a file, and then COPY each f

Re: partial data migration

2019-03-07 Thread Ron
(8.3?  That's even older than what we just migrated from!!!) No.  Make some views (I'd probably make them "month-sized"), COPY each view from the source db to a file, and then COPY each file to it's relevant target table. You should also think about a program named pg_bulkload. https://www.p

Re: partial data migration

2019-03-07 Thread Julie Nishimura
Thank you Ron! What if dev environment is on 9.6, but prod is on version 8.3? Will posgtres_fdw still be the right option? Sent from my iPhone On Mar 6, 2019, at 11:57 PM, Ron mailto:ronljohnso...@gmail.com>> wrote: On 3/7/19 1:54 AM, Julie Nishimura wrote: Hello psql friends, We need to migra

Re: partial data migration

2019-03-06 Thread Ron
On 3/7/19 1:54 AM, Julie Nishimura wrote: Hello psql friends, We need to migrate only 6 months worth of data from one instance to another. What would be the easiest way to do it? In Oracle, I would set up dblink. What about postgresql? postgres_fdw -- Angular momentum makes the world go 'rou

partial data migration

2019-03-06 Thread Julie Nishimura
Hello psql friends, We need to migrate only 6 months worth of data from one instance to another. What would be the easiest way to do it? In Oracle, I would set up dblink. What about postgresql? Thank you!