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 1i8mKo-00026F-NX for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2019 14:14:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i8mKm-00088Z-Oe for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2019 14:14:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8mKm-00088Q-EF for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2019 14:14:00 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8mKf-0003Mp-Q4 for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2019 14:13:59 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 46VHgM2wbcz12hL for ; Fri, 13 Sep 2019 10:13:51 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 46VHgM1yt2z1ZVT; Fri, 13 Sep 2019 10:13:51 -0400 (EDT) Date: Fri, 13 Sep 2019 10:13:51 -0400 From: stan To: pgsql-general@lists.postgresql.org Subject: backing up the data from a single table? Message-ID: <20190913141351.GC27035@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk My development methodology is to create scripts that init the db, and load test data, as I make changes. Now, I am starting to move toward a test instance with real data. The end user has provided "real" test data, n spreadsheets. I have the inputing of data from these working OK. (takes a bit of hand work). What I would like to do, is continue to init the "test" database. To make that easy, I would like to be able to "export" individual tables, so I can use the scripts to reload them. I prefer not to have to convert these to my load script format. Is there a way to "export" a single table, that can be easily re "imported"? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin