Search Postgresql Archives

Re: Is there any way to import a portion of a large database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/19/11 11:35 PM, AI Rumman wrote:
I have a production Postgresql 9 database of 2 TB+. For development purpose, I have to import this database in development server where I have only 1 TB of disk space. No more space can be added at present. Is there any way so that I might import the whole schema definition of the database with a portion of data in my development server?

well, you certainly can dump and import just the schema... how are you going to have this hypothetical partial dump program decide WHAT part of the various database tables to dump? is the bulk of this data in 1 or 2 very large tables? you could dump everything but those 1 or 2 large tables, then use some sort of COPY to CSV on those specific tables that only selects some of the data (maybe by date, or by serial number, or some other suitable key).



--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux