From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | chandresh rana <chandresh(dot)rana(at)metrixline(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: problem importing data with psql |
Date: | 2007-06-27 07:27:00 |
Message-ID: | 46821144.9060709@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Try and remember to CC: the list - there are plenty of other people who
can help too.
chandresh rana wrote:
> Hi Richard,
>
> Let me explain you exactly what am trying to achieve.
>
> Am trying to export the database of the sever(ver 7.4) to my local
> server(ver 8.2).The problem in exporting ,is that certain tables are of very
> huge size which will be take weeks to complete if they are included.So need
> to eliminate those tables.
OK. How big are we talking about? What is the size:
1. Of the large table(s)?
2. Of the database as a whole?
> After having exporting/importing of the schema and the included tables,now
> need to get certain/limited set of record/rows from excluded tables to get
> the database start locally.
I would copy the rows I want to a new table (still in the 7.4 database)
and then dump that.
You can have pg_dump dump individual tables (use pg_dump from 8.2, it's
smarter) and then either:
1. rename the table in the dumped file
2. rename it after importing
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2007-06-27 07:30:43 | Re: Auto Vaccume- Time based |
Previous Message | Bruce McAlister | 2007-06-27 07:14:07 | Re: AutoVacuum Behaviour Question |