Skip site navigation (1) Skip section navigation (2)

Re: ALTER TABLE TODO items

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ALTER TABLE TODO items
Date: 2004-05-05 17:59:04
Message-ID: 8274.1083779944@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Wow, you can reference different column as part of the alter column.

Yeah, the USING is actually any arbitrary expression over the old table
row.  (Getting that to work was a tad tricky...)  So you can view this
as a full-table UPDATE operation that folds in possible column type changes.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Manfred KoizarDate: 2004-05-05 18:02:55
Subject: Re: Multiple Xids in PGPROC?
Previous:From: Bruce MomjianDate: 2004-05-05 17:51:23
Subject: Re: ALTER TABLE TODO items

pgsql-committers by date

Next:From: Richard HuxtonDate: 2004-05-05 19:45:39
Subject: Re: ALTER TABLE TODO items
Previous:From: Bruce MomjianDate: 2004-05-05 17:51:23
Subject: Re: ALTER TABLE TODO items

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group