pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Day, David <david.day@redcom.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Rename a column if not already renamed.?
Date: Tue, 20 Aug 2019 16:56:46 -0400
Message-ID: <17271.1566334606@sss.pgh.pa.us> (raw)
In-Reply-To: <c493cce5a73f468d91633f3d2daae284@redcom.com>
References: <ef59a820008b4d3299428db52ecc32e0@redcom.com>
	<CAKoxK+5X5pwc97Jwt+jPGi6Nnp2JUnQccAUJstfu_3dKY3b-wA@mail.gmail.com>
	<c493cce5a73f468d91633f3d2daae284@redcom.com>

"Day, David" <david.day@redcom.com> writes:
> The error is something like column already exists and 

Not sure about the workflow this function is used within, but maybe you
need to consider what to do when both the old and new column names exist.
Because that sure sounds like what is happening.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <17271.1566334606@sss.pgh.pa.us>
Permalink:  ../17271.1566334606@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17271.1566334606@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.day@redcom.com, fluca1978@gmail.com
  Subject: Re: Rename a column if not already renamed.?
  In-Reply-To: <17271.1566334606@sss.pgh.pa.us>
  References: <ef59a820008b4d3299428db52ecc32e0@redcom.com> <CAKoxK+5X5pwc97Jwt+jPGi6Nnp2JUnQccAUJstfu_3dKY3b-wA@mail.gmail.com> <c493cce5a73f468d91633f3d2daae284@redcom.com> <17271.1566334606@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox