From: | Heiko Klein <Heiko(dot)Klein(at)met(dot)no> |
---|---|
To: | "Axel Selk" <sel(at)biba(dot)uni-bremen(dot)de> |
Cc: | Postgres mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to perform an identical insert? |
Date: | 2002-03-22 13:54:58 |
Message-ID: | 15515.14258.305603.964670@polar.oslo.dnmi.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Darren Ferguson | 2002-03-22 14:02:36 | Re: How to perform an identical insert? |
Previous Message | Nigel J. Andrews | 2002-03-22 13:35:47 | Re: Huge Performance Difference on Similar Query in Pg7.2 |