Re: Bulk inserts into two (related) tables

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Bulk inserts into two (related) tables
Дата
Msg-id alpine.LNX.2.20.1905211028090.6551@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Bulk inserts into two (related) tables  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Tue, 21 May 2019, Adrian Klaver wrote:

> The other way is to create the org_id for each organization ahead of time
> and put it into the data file. Either way you have create the org_id for
> the FK relationship, it is just a matter of where and when.

Adrian,

I had thought of that but overlooked it. The max(org_id) number is 338 so I
can assign sequential numbers above that as I format the data for the insert
scripts.

Thanks for the reminder,

Rich



В списке pgsql-general по дате отправления:

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Bulk inserts into two (related) tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Refresh Publication takes hours and doesn´t finish