postgresql/src
Tom Lane 88452d5ba6 Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX.
This feature allows a unique or pkey constraint to be created using an
already-existing unique index.  While the constraint isn't very
functionally different from the bare index, it's nice to be able to do that
for documentation purposes.  The main advantage over just issuing a plain
ALTER TABLE ADD UNIQUE/PRIMARY KEY is that the index can be created with
CREATE INDEX CONCURRENTLY, so that there is not a long interval where the
table is locked against updates.

On the way, refactor some of the code in DefineIndex() and index_create()
so that we don't have to pass through those functions in order to create
the index constraint's catalog entries.  Also, in parse_utilcmd.c, pass
around the ParseState pointer in struct CreateStmtContext to save on
notation, and add error location pointers to some error reports that didn't
have one before.

Gurjeet Singh, reviewed by Steve Singer and Tom Lane
2011-01-25 15:43:05 -05:00
..
backend Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX. 2011-01-25 15:43:05 -05:00
bin Document the "S" option for psql's \dn command in the psql help 2011-01-25 01:51:35 +02:00
include Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX. 2011-01-25 15:43:05 -05:00
interfaces There is no need to have to identical functions in ecpg thus removing one of them. 2011-01-09 12:47:43 +01:00
makefiles
pl Call PLy_spi_execute_fetch_result inside the try/catch block 2011-01-25 00:43:25 +02:00
port Add pgreadlink() on Windows to read junction points 2011-01-09 15:09:19 +01:00
template
test Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX. 2011-01-25 15:43:05 -05:00
timezone
tools Exclude sepgsql from MSVC regression testing as well 2011-01-24 08:24:31 +01:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in sepgsql, an SE-Linux integration for PostgreSQL 2011-01-23 20:48:27 -05:00
Makefile.shlib
nls-global.mk
win32.mak