pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Converting yes or no to one letter strings.
Date: Tue, 4 Jun 2019 16:44:43 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com> (raw)
In-Reply-To: <CAKFQuwb+1NkFp1CdXBXN=sJSEoHcVY8qp49rLrv4HDC2wTV1xA@mail.gmail.com>
References: <555b017e-2449-43a4-19e6-4c19af6017e3@dayspringpublisher.com>
	<alpine.LNX.2.20.1906041558510.12623@salmo.appl-ecosys.com>
	<CAKFQuwb+1NkFp1CdXBXN=sJSEoHcVY8qp49rLrv4HDC2wTV1xA@mail.gmail.com>

On Tue, 4 Jun 2019, David G. Johnston wrote:

> Actually, given that "f" is becoming multiple different values it seems
> like the OP is improving upon their data model. That should very much be
> done at the table level at not relegated to views, let alone a UI layer.
>
> It is not unusual to want to convert something that was a simple boolean
> to an enumeration of values. Though it is probably better to add a new
> column to reflect the new model element and effectively deprecate the old
> column - eventually removing it from use when it is no longer needed.
> Altering the column type, while possible, is not usually desirable. In
> particular it makes rolling back (or supporting older) client software
> more difficult because the old version will not recognize the new field
> and the old field will be gone.

David,

Thanks for the insights.

Rich





view thread (10+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com

 · 

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: rshepard@appl-ecosys.com
  Subject: Re: Converting yes or no to one letter strings.
  In-Reply-To: <alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com>
  References: <555b017e-2449-43a4-19e6-4c19af6017e3@dayspringpublisher.com> <alpine.LNX.2.20.1906041558510.12623@salmo.appl-ecosys.com> <CAKFQuwb+1NkFp1CdXBXN=sJSEoHcVY8qp49rLrv4HDC2wTV1xA@mail.gmail.com> <alpine.LNX.2.20.1906041643490.12623@salmo.appl-ecosys.com>

* 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