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 1gIN0w-00008u-HQ for pgsql-general@arkaria.postgresql.org; Fri, 02 Nov 2018 00:08:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIN0v-0001gO-5G for pgsql-general@arkaria.postgresql.org; Fri, 02 Nov 2018 00:08:37 +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 1gIN0u-0001dT-QD for pgsql-general@lists.postgresql.org; Fri, 02 Nov 2018 00:08:36 +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 1gIN0s-0004D8-4r for pgsql-general@postgresql.org; Fri, 02 Nov 2018 00:08:35 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id E65CE992D4 for ; Thu, 1 Nov 2018 17:08:32 -0700 (PDT) Date: Thu, 1 Nov 2018 17:08:32 -0700 (PDT) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org 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, Rich Shepard wrote: > I'll use gawk to extract the relevant fields from the text file in which > they reside (in the correct order), then use emacs keyboard macros to add > the appropriate update text to each line. Must more efficient (and less > tedious) than manually writing each line. Actually a one-liner gawk script does the job. Thanks again for the suggestion! Regards, Rich