Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT8Ui-0000nI-22 for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 17:24:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT8Ug-00060n-PP for pgsql-general@arkaria.postgresql.org; Tue, 21 May 2019 17:24:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT8Ug-00060R-C2 for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 17:24:06 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT8Ue-0005EO-7j for pgsql-general@lists.postgresql.org; Tue, 21 May 2019 17:24:05 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 3339F99387 for ; Tue, 21 May 2019 10:24:03 -0700 (PDT) Date: Tue, 21 May 2019 10:24:03 -0700 (PDT) From: Rich Shepard To: "pgsql-generallists.postgresql.org" Subject: Re: Bulk inserts into two (related) tables In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 21 May 2019, Francisco Olarte wrote: > From how you say it, I assume you have some data in your original > dumps which can relate boths, lets assume it's org_name, but may be an > org-code. If you do not have it it means you cannot match people to > orgs in your data, all is lost. Francisco, Not yet with these new data. I'll manually insert the org_id numbers from the organizations table into the people table. Thanks, Rich