Re: How to perform an identical insert?

Поиск
Список
Период
Сортировка
От Heiko Klein
Тема Re: How to perform an identical insert?
Дата
Msg-id 15515.14258.305603.964670@polar.oslo.dnmi.no
обсуждение исходный текст
Ответ на How to perform an identical insert?  ("Axel Selk" <sel@biba.uni-bremen.de>)
Ответы Re: How to perform an identical insert?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Darren Ferguson
Дата:
Сообщение: Re: How to perform an identical insert?
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: Postmaster processes running out of control?