Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXDbW-0008PN-NR for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 00:12:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXDbV-00031H-Fe for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 00:12:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXDbU-000315-7G for pgsql-general@lists.postgresql.org; Wed, 20 Nov 2019 00:12:17 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iXDbR-000208-EN for pgsql-general@postgresql.org; Wed, 20 Nov 2019 00:12:15 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 902B5220EB; Tue, 19 Nov 2019 19:12:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 19 Nov 2019 19:12:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=G 4SiNBmMDT/3lU5t+OnssLJaSOrr9e0/lwyB4jh3nJc=; b=u1UrUpAqIxwVeUjMk ZLXH0lF9/ycRMCykO7Ro+QpywffKrqF+HqtBgc3LP2ftovmpK8FBJ+7ckSc4FleG +2+djo4Plx9aXe66Dc84Tor09sltqkHBRqgHc7YwcsbYYx6MHRmZjQCj8lWTfXgI kQ1+8bASyq3LSmZ/jRYV1QvYencvuyccjZDmMCBCPMXZDWXhwhXXmcDaueKX+3bF SdpZTq6UwWwjTx0a7VtlB6g9+pYsnSKb7DgEdpR7jvKhXRGFpKLvArk9rPi6wx3b MQ6vLR3xJn3A9eprDkrCht4MZCc0kN8qaRoVKX+Bu7WFed0FVGvLQSFN2bM24cms 8q29w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=G4SiNBmMDT/3lU5t+OnssLJaSOrr9e0/lwyB4jh3n Jc=; b=MV90BP7tydjWID6NgsNoIvHUmQTU16W0z9y5ZfX03HuElI0UZDcnaDqP7 6i77kpLV+vnELrJQLdB74gaP7mUAkmPhBIGasUFndzv/6NVSu3GU5y/ZVS3dYD4H PB3zcehYK9G7vT0H7RwnVwEea/BDszQEzwkiNj2mS42n8j/OPoIvmq+xkaoTgRz5 qHVO8KGvln8RaTFLPRmc1t3xbCR4MSmwd050pAVVkVg2p/2mnboFU9Unpk5TaaSY AutffgNO44qr7aOm2nYmKVJcIMe0IVNP5EA9uANmuRijRenEoCgxsC7tSOYAwkXW CGb64MVuKM3t9r+2e+GOx45szGYdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudegledgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepjedurddvuddvrddufeelrddujedunecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.139.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 9C4BD306005E; Tue, 19 Nov 2019 19:12:11 -0500 (EST) Subject: Re: postgres backup question To: Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general References: From: Adrian Klaver Message-ID: <65d635f3-3d8f-713b-9723-5bc9e875b059@aklaver.com> Date: Tue, 19 Nov 2019 16:12:10 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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