Re: How to perform an identical insert? - Mailing list pgsql-general

From Heiko Klein
Subject Re: How to perform an identical insert?
Date
Msg-id 15515.14258.305603.964670@polar.oslo.dnmi.no
Whole thread Raw
In response to How to perform an identical insert?  ("Axel Selk" <sel@biba.uni-bremen.de>)
Responses Re: How to perform an identical insert?
List pgsql-general
Hi Axel,

have a look at this:
http://www.ca.postgresql.org/docs/aw_pgsql_book/node75.html


The postgres serial type is nothing more than a primary key with a
default-value as nextval('..') from a sequence and a trigger.

If you make this setup manually, you can load the data before attaching
the trigger and it should work. (Though I haven't tried this.)

Heiko

Axel Selk writes:
 > Dear list,
 > I have collected data in a Microsoft Access data base and I am trying
 > now to transfer this data to a postgres data base running on a Linux
 > computer. I generated SQL scripts for the structure as well as for the
 > data. I have trouble with the data inserts. I want to insert the MS
 > Access IDs into Postgres as all references are made to those IDs.
 > But I found only the ID serial format in Postgres, which does not accept
 > inserted IDs. Is there any way to insert the IDs from Access and then
 > using the serial ID for any further action in Postgres?
 >
 > Please, advice.
 >
 >
 > With kind regards
 >
 > Axel Selk

pgsql-general by date:

Previous
From: Darren Ferguson
Date:
Subject: Re: How to perform an identical insert?
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: Postmaster processes running out of control?