postgresql/src/include/commands
Bruce Momjian c91dbcc5c7 The following patch finishes primary key support. Previously, when
a field was labelled as a primary key, the system automatically
created a unique index on the field.  This patch extends it so
that the index has the indisprimary field set.  You can pull a list
of primary keys with the followiing select.

SELECT pg_class.relname, pg_attribute.attname
    FROM pg_class, pg_attribute, pg_index
    WHERE pg_class.oid = pg_attribute.attrelid AND
        pg_class.oid = pg_index.indrelid AND
        pg_index.indkey[0] = pg_attribute.attnum AND
        pg_index.indisunique = 't';

There is nothing in this patch that modifies the template database to
set the indisprimary attribute for system tables.  Should they be
changed or should we only be concerned with user tables?

D'Arcy
1999-01-21 22:48:20 +00:00
..
async.h Substantial rewrite of async.c to avoid problems with non-reentrant stdio 1998-10-06 02:40:09 +00:00
cluster.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
command.h SET TRANSACTION ISOLATION LEVEL ... 1998-12-18 09:10:39 +00:00
copy.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
creatinh.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
dbcommands.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
defrem.h The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
explain.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
proclang.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
recipe.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
rename.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
sequence.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
trigger.h Initial MVCC code. 1998-12-15 12:47:01 +00:00
user.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
vacuum.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
variable.h Make functions static or ifdef NOT_USED. Prevent pg_version creation. 1998-10-08 18:30:52 +00:00
version.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
view.h OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00