Converting Database
Posted: Tue 19 Jan 2010 05:37
Sorry if this is to generic but am new to PostgreSQL. I have an existing product that uses another database. I am looking into converting to PostgreSQL. Therefore, I will need to write a conversion program.
The existing db uses the typical integer autoinc fields for the primary key for each table. I would like to do the same in PostgreSQL. Is there a way create my PostgreSQL tables with an integer ID field, import the data and then create my sequences on the ID field where the nextval is some arbitrary integer.
Thanks
The existing db uses the typical integer autoinc fields for the primary key for each table. I would like to do the same in PostgreSQL. Is there a way create my PostgreSQL tables with an integer ID field, import the data and then create my sequences on the ID field where the nextval is some arbitrary integer.
Thanks