postgresql/src
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
..
backend ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
bin Set std error to no buffering on Win32. 2004-05-02 04:25:45 +00:00
corba make sure the $Id tags are converted to $PostgreSQL as well ... 2003-11-29 22:41:33 +00:00
include ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
interfaces Minor adjustments to enable public-domain timezone library to be called 2004-04-30 04:14:06 +00:00
makefiles Remove JDBC from the build system and documentation, too. 2004-01-19 21:20:06 +00:00
pl Improve syntax error messages for invalid-argument cases in RETURN and 2004-04-15 13:01:45 +00:00
port Add new auto-detection of thread flags. 2004-04-23 18:15:55 +00:00
template Unconditionally define: 2004-04-26 04:04:42 +00:00
test ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
timezone More win32 adjustment for timezone directory. 2004-05-02 03:12:12 +00:00
tools Do thread testing from configure in a much cleaner fashion. 2004-04-27 19:51:12 +00:00
tutorial Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
utils For application to HEAD, following community review. 2004-02-25 19:41:23 +00:00
bcc32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Integrate timezone library to be called only from Win32. 2004-04-30 04:31:52 +00:00
Makefile.global.in Rename to USE_PGTZ to match code. 2004-04-30 15:01:25 +00:00
Makefile.shlib Win32 patch for Makefile.shlib 2003-12-01 22:23:06 +00:00
nls-global.mk $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
win32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00