Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIYZY-00006s-Jt for pgsql-general@arkaria.postgresql.org; Fri, 02 Nov 2018 12:29: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 1gIYZW-00019I-Cq for pgsql-general@arkaria.postgresql.org; Fri, 02 Nov 2018 12:29: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIYZW-00019B-1H for pgsql-general@lists.postgresql.org; Fri, 02 Nov 2018 12:29: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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIYZP-0003hl-El for pgsql-general@postgresql.org; Fri, 02 Nov 2018 12:29:04 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 04291992D4 for ; Fri, 2 Nov 2018 05:28:58 -0700 (PDT) Date: Fri, 2 Nov 2018 05:28:58 -0700 (PDT) From: Rich Shepard To: PG-General Mailing List Subject: Re: Add columns to table; insert values based on row 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 Thu, 1 Nov 2018, Ken Tanzer wrote: > I'm not sure what format your text file is in, but you could probably use > \copy to bring it into a (temporary) table in Postgres. As long as it had > your four new columns and the site_nbr, you could then update from that > table in one swoop: Ken, Thank you. Rich