postgresql/src/backend
Tom Lane 077db40fa1 ALTER TABLE rewrite. New cool stuff:
* ALTER ... ADD COLUMN with defaults and NOT NULL constraints works per SQL
spec.  A default is implemented by rewriting the table with the new value
stored in each row.

* ALTER COLUMN TYPE.  You can change a column's datatype to anything you
want, so long as you can specify how to convert the old value.  Rewrites
the table.  (Possible future improvement: optimize no-op conversions such
as varchar(N) to varchar(N+1).)

* Multiple ALTER actions in a single ALTER TABLE command.  You can perform
any number of column additions, type changes, and constraint additions with
only one pass over the table contents.

Basic documentation provided in ALTER TABLE ref page, but some more docs
work is needed.

Original patch from Rod Taylor, additional work from Tom Lane.
2004-05-05 04:48:48 +00:00
..
access Tweak indexscan and seqscan code to arrange that steps from one page to 2004-04-21 18:24:26 +00:00
bootstrap ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
catalog ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
commands ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
executor Tweak indexscan and seqscan code to arrange that steps from one page to 2004-04-21 18:24:26 +00:00
lib Remove the last traces of Joe Hellerstein's "xfunc" optimization. Patch 2004-04-25 18:23:57 +00:00
libpq Ensure getaddrinfo_all returns null result on failure. 2004-04-24 20:10:34 +00:00
main * Most changes are to fix warnings issued when compiling win32 2004-04-19 17:42:59 +00:00
nodes ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
optimizer Remove the last traces of Joe Hellerstein's "xfunc" optimization. Patch 2004-04-25 18:23:57 +00:00
parser ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
po Translation updates 2004-04-09 06:49:35 +00:00
port Per discussion earlier today, here is a fix that lets ereport() on win32 2004-04-22 03:51:24 +00:00
postmaster * Most changes are to fix warnings issued when compiling win32 2004-04-19 17:42:59 +00:00
regex $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
rewrite Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
storage Tiny assorted fixes: correct a typo in a comment in vacuumlazy.c, remove 2004-04-25 23:50:58 +00:00
tcop ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
utils ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
Makefile More cleanups for USE_PGTZ. 2004-04-30 16:08:01 +00:00
nls.mk $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00