Re: Add columns to table; insert values based on row

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Add columns to table; insert values based on row
Date: 2018-11-01 21:56:37
Message-ID: alpine.LNX.2.20.1811011451560.13759@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2 Nov 2018, Tim Cross wrote:

> 3. Is it really insert or update you need?

Tim,

Update.

It's been a long time since I did any database manipulation (I just use
the existing databases as each project needs its data) so I sometimes make
these types of mistakes.

Your idea of manipulating a text file is a great one!

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.

Thanks,

Rich

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2018-11-01 23:06:32 Re: Truncation of UNLOGGED tables upon restart.
Previous Message Ron 2018-11-01 21:29:57 Re: Truncation of UNLOGGED tables upon restart.