From: | github kran <githubkran(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql-sql(at)postgresql(dot)org |
Subject: | Archival process of partition tables with filtering few rows from tables. |
Date: | 2019-03-29 04:13:31 |
Message-ID: | CACaZr5SFcUNkRBGwNLRnoCD46RwpAoLTsgm09E9yKO9P2=vTZQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Hello Team,
We are using PostgreSQL Version 9.6 and planning to archive our partition
tables containing about 300 - 500 million rows . We have around ~ 50
partition tables to be archived to a new
cold path PostgreSQL database , version 10.6. We have a requirement to
filter few rows before exporting this data from these tables as we dont
want to archive those rows .
What is a better approach to export and restore these tables ?.
- Does COPY Command with a filter query to filter few rows using select
works better ?.
- pg_dump with filtering these rows ?.
- Can i able to export my indexes , check constraints , constraints ?.
- Any other options ?.
Appreciate your replies.
Thanks.
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2019-03-29 05:42:52 | Re: Archival process of partition tables with filtering few rows from tables. |
Previous Message | Andrew Gierth | 2019-03-29 00:50:53 | Re: Subquery to select max(date) value |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2019-03-29 05:42:52 | Re: Archival process of partition tables with filtering few rows from tables. |
Previous Message | Jonathan S. Katz | 2019-03-22 13:08:38 | Re: Error while executing a view in postgres 10.5 |