Re: Bulk inserts into two (related) tables

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Bulk inserts into two (related) tables
Date: 2019-05-21 17:29:35
Message-ID: alpine.LNX.2.20.1905211028090.6551@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-05-21 17:41:02 Re: Re: Refresh Publication takes hours and doesn´t finish
Previous Message Rich Shepard 2019-05-21 17:27:12 Re: Bulk inserts into two (related) tables