pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Hammond <andrew.george.hammond@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: alter column type from boolean to char with default
Date: Thu, 03 Aug 2006 15:40:25 -0400
Message-ID: <24205.1154634025@sss.pgh.pa.us> (raw)
In-Reply-To: <1154630971.819812.304930@p79g2000cwp.googlegroups.com>
References: <684362e10608020546t16e6d3e8nf6756abd15a21a68@mail.gmail.com>
	<15041.1154524770@sss.pgh.pa.us>
	<1154526983.29712.223.camel@home>
	<18063.1154536619@sss.pgh.pa.us>
	<1154630971.819812.304930@p79g2000cwp.googlegroups.com>

"Andrew Hammond" <andrew.george.hammond@gmail.com> writes:
> Alternatively, you already have the USING clause to tell you how to
> alter the data. How about using it to alter the default as well?

The reasons not to do that are already set forth in the ALTER TABLE
man page.

			regards, tom lane



view thread (6+ messages)

Message-ID: <24205.1154634025@sss.pgh.pa.us>
Permalink:  ../24205.1154634025@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24205.1154634025@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew.george.hammond@gmail.com
  Subject: Re: alter column type from boolean to char with default
  In-Reply-To: <24205.1154634025@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