From: | Ray O'Donnell <ray(at)rodonnell(dot)ie> |
---|---|
To: | stan <stanb(at)panix(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: backing up the data from a single table? |
Date: | 2019-09-13 14:17:03 |
Message-ID: | ce794137-a75a-465f-86c7-15c0e9a5791b@rodonnell.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 13/09/2019 15:13, stan wrote:
> 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"?
Yes, absolutely:
pg_dump -t <table-name> (etc)
Ray.
--
Raymond O'Donnell // Galway // Ireland
ray(at)rodonnell(dot)ie
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-09-13 14:24:35 | Re: PG SQL and LIKE clause |
Previous Message | Adrian Klaver | 2019-09-13 14:14:49 | Re: PG SQL and LIKE clause |