pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: postgres backup question
Date: Tue, 19 Nov 2019 16:12:10 -0800
Message-ID: <65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB50145FF44FF5C818D4BE2D9EAC4F0@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50145FF44FF5C818D4BE2D9EAC4F0@BYAPR08MB5014.namprd08.prod.outlook.com>

On 11/19/19 4:06 PM, Julie Nishimura wrote:
> Hello,
> What is the best way to dump/restore the entire database except couple 
> of largest tables, what is the best way to do it on PostgreSQL 9.4.1 on 
> x86_64-unknown-linux-gnu?

https://www.postgresql.org/docs/11/app-pgdump.html

-T table
--exclude-table=table

     Do not dump any tables matching the table pattern. The pattern is 
interpreted according to the same rules as for -t. -T can be given more 
than once to exclude tables matching any of several patterns.

     When both -t and -T are given, the behavior is to dump just the 
tables that match at least one -t switch but no -T switches. If -T 
appears without -t, then tables matching -T are excluded from what is 
otherwise a normal dump.


> 
> Thank you


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (2+ messages)

Message-ID: <65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com>
Permalink:  ../65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com/
Also on:    postgresql.org/message-id/65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, juliezain@hotmail.com
  Subject: Re: postgres backup question
  In-Reply-To: <65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com>
  References: <BYAPR08MB50145FF44FF5C818D4BE2D9EAC4F0@BYAPR08MB5014.namprd08.prod.outlook.com> <65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com>

* 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