postgresql/doc/src/sgml
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
..
ref ALTER TABLE rewrite. New cool stuff: 2004-05-05 04:48:48 +00:00
advanced.sgml Back out tutorial changes: 2004-03-31 16:20:53 +00:00
arch-dev.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
array.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
backup.sgml Improvements to the backup & restore documentation. 2004-04-22 07:02:36 +00:00
biblio.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
bki.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
book-decl.sgml Add User's Guide chapters on Data Definition and Data Manipulation. 2002-08-05 19:43:31 +00:00
catalogs.sgml Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
charset.sgml Improve the locale and character set docs, add some <xref>s pointing 2004-03-23 02:47:35 +00:00
client-auth.sgml Replace the virtual_host and tcpip_socket parameters with a unified 2004-03-23 01:23:48 +00:00
contacts.sgml Update Thomas Lockhart's email address to lockhart@fourpalms.org. 2002-01-08 20:03:58 +00:00
cvs.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
datatype.sgml Improve the locale and character set docs, add some <xref>s pointing 2004-03-23 02:47:35 +00:00
datetime.sgml Back out tutorial changes: 2004-03-31 16:20:53 +00:00
ddl.sgml Improve discussion of using OIDs for identifying rows, fix an instance of 2004-03-07 04:31:01 +00:00
dfunc.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
diskusage.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
dml.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
docguide.sgml Minor SGML markup improvements. 2004-02-17 02:53:03 +00:00
ecpg.sgml Fixed docs to clearly note that ecpg is originally a C precompiler and C++ stuff is not 100%. 2003-12-26 20:00:00 +00:00
errcodes.sgml Emit a warning when an empty string is input to the oid, float4, and 2004-03-04 21:47:18 +00:00
extend.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
features.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
filelist.sgml Remove TCL docs. 2004-04-20 01:11:49 +00:00
fixrtf Add option --refentry to change \keepn (keep with next paragraph) to 2001-04-20 15:50:25 +00:00
func.sgml Add ceiling() as an alias for ceil(), and power() as an alias for pow(). 2004-04-23 20:32:20 +00:00
geqo.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
gist.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
history.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
indexcost.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
indices.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
info.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
information_schema.sgml Fix typo 2004-04-22 08:36:48 +00:00
install-win32.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
installation.sgml Remove TCL docs. 2004-04-20 01:11:49 +00:00
intro.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
keywords.sgml Add ALSO keyword to CREATE RULE. 2004-03-09 05:05:41 +00:00
legal.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
libpq.sgml Fix typo in libpq docs. 2004-04-24 22:58:40 +00:00
lobj.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
maintenance.sgml Remove 'syslog' GUC variable, and add more logical 'log_destination' 2004-04-05 03:02:11 +00:00
Makefile Remove blank line in Makefile. 2004-03-09 20:10:10 +00:00
manage-ag.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
mk_feature_tables.pl Add sql_features table to information schema. Generate the features list 2003-01-14 23:19:34 +00:00
monitoring.sgml More cross-reference work, other minor SGML fixes and improvements. 2004-03-26 03:18:28 +00:00
mvcc.sgml This patch makes some SGML markup more consistent and makes a small 2003-12-13 23:59:07 +00:00
nls.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
notation.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
page.sgml This patch makes some improvements and adds some additional detail 2003-12-14 00:10:32 +00:00
perform.sgml Make psql's \d+ command indicate whether the table in question 2004-04-22 17:38:16 +00:00
plhandler.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
plperl.sgml This patch makes some improvements and adds some additional detail 2003-12-14 00:10:32 +00:00
plpgsql.sgml More cross-reference work, other minor SGML fixes and improvements. 2004-03-26 03:18:28 +00:00
plpython.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
pltcl.sgml Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson. 2004-01-24 23:06:29 +00:00
postgres.sgml Remove TCL docs. 2004-04-20 01:11:49 +00:00
problems.sgml Refer to GUC variables using <xref> tags rather than <varname> tags, 2004-03-09 16:57:47 +00:00
protocol.sgml Revise syntax-error reporting behavior to give pleasant results for 2004-03-21 22:29:11 +00:00
queries.sgml Add a few more cross-references where appropriate, add more text about 2004-03-03 22:22:24 +00:00
query.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
refentry.sgml Accumulated fixups. 2000-03-30 22:22:41 +00:00
reference.ced Deprecate 'current' for date/time input. 2001-11-21 05:53:41 +00:00
reference.sgml Remove additional tcl doc mention. 2004-04-20 01:14:55 +00:00
regress.sgml Update random regression test text to be clearer. 2004-03-15 16:11:42 +00:00
release.sgml Fix obscure typo in 7.4.0 release notes. 2004-05-03 08:47:54 +00:00
rules.sgml Add ALSO keyword to CREATE RULE. 2004-03-09 05:05:41 +00:00
runtime.sgml Minor copy-editing. 2004-04-29 04:37:09 +00:00
sources.sgml Minor SGML markup improvements. 2004-02-17 02:53:03 +00:00
spi.sgml Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
sql.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
standalone-install.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
start.sgml Improve \? wording, remove 'internal'. 2004-02-12 19:58:16 +00:00
stylesheet.css Override some of the changes in DocBook DSSSL stylesheets 1.78 to restore 2003-12-15 23:58:12 +00:00
stylesheet.dsl Override some of the changes in DocBook DSSSL stylesheets 1.78 to restore 2003-12-15 23:58:12 +00:00
stylesheet.xsl Some refinement of XSLT processing: The result now looks just about as good 2004-01-15 23:51:32 +00:00
syntax.sgml Allow 'Infinity' and '-Infinity' as input to the float4 and float8 2004-03-12 00:25:43 +00:00
trigger.sgml Add a few more cross-references where appropriate, add more text about 2004-03-03 22:22:24 +00:00
typeconv.sgml This patch makes some improvements and adds some additional detail 2003-12-14 00:10:32 +00:00
user-manag.sgml Add a few more <xref> tags to the SGML docs, where appropriate. Original 2004-02-17 09:07:16 +00:00
wal.sgml Refer to GUC variables using <xref> tags rather than <varname> tags, 2004-03-09 16:57:47 +00:00
xaggr.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
xfunc.sgml Replace TupleTableSlot convention for whole-row variables and function 2004-04-01 21:28:47 +00:00
xindex.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
xoper.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
xplang.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
xtypes.sgml $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00