importing limited set of rows/tuples

View: New views
2 Messages — Rating Filter:   Alert me  

importing limited set of rows/tuples

by cha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I have eliminated certain tables while exporting as the size of the data in the tables are huge.Though am having the schema which contains all the tables.
 
Now I want to import limited set of records/rows ( 1000 tuples ) from the eliminated tables.
 
Is this possible? If yes, please tell me how to accomplish this?
 
Secondly, like to know how postgresql take care of all the constraints/referential integrity while importing the records from the different tables?

Cheers,
Cha

Re: importing limited set of rows/tuples

by Dimitri Fontaine-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Le lundi 02 juillet 2007, cha a écrit :
> Now I want to import limited set of records/rows ( 1000 tuples ) from the
> eliminated tables.
>
> Is this possible? If yes, please tell me how to accomplish this?

If you have CSV or CSV-like data file format, you can use pgloader with the -C
option, you can even load from any line in the file (given by number or data
id, multi-column keys supported) :
  http://pgfoundry.org/projects/pgloader

Regards,
--
dim


signature.asc (196 bytes) Download Attachment