postgresql/src/include/access
Tom Lane 1d584f97b9 Clean up various to-do items associated with system indexes:
pg_database now has unique indexes on oid and on datname.
pg_shadow now has unique indexes on usename and on usesysid.
pg_am now has unique index on oid.
pg_opclass now has unique index on oid.
pg_amproc now has unique index on amid+amopclaid+amprocnum.
Remove pg_rewrite's unnecessary index on oid, delete unused RULEOID syscache.
Remove index on pg_listener and associated syscache for performance reasons
(caching rows that are certain to change before you need 'em again is
rather pointless).
Change pg_attrdef's nonunique index on adrelid into a unique index on
adrelid+adnum.

Fix various incorrect settings of pg_class.relisshared, make that the
primary reference point for whether a relation is shared or not.
IsSharedSystemRelationName() is now only consulted to initialize relisshared
during initial creation of tables and indexes.  In theory we might now
support shared user relations, though it's not clear how one would get
entries for them into pg_class &etc of multiple databases.

Fix recently reported bug that pg_attribute rows created for an index all have
the same OID.  (Proof that non-unique OID doesn't matter unless it's
actually used to do lookups ;-))

There's no need to treat pg_trigger, pg_attrdef, pg_relcheck as bootstrap
relations.  Convert them into plain system catalogs without hardwired
entries in pg_class and friends.

Unify global.bki and template1.bki into a single init script postgres.bki,
since the alleged distinction between them was misleading and pointless.
Not to mention that it didn't work for setting up indexes on shared
system relations.

Rationalize locking of pg_shadow, pg_group, pg_attrdef (no need to use
AccessExclusiveLock where ExclusiveLock or even RowExclusiveLock will do).
Also, hold locks until transaction commit where necessary.
2001-06-12 05:55:50 +00:00
..
attnum.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
genam.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
gist.h Updates to make GIST work with multi-key indexes (from Oleg Bartunov 2001-05-31 18:16:55 +00:00
gistscan.h Tweak StrategyEvaluation data structure to eliminate hardwired limit on 2001-05-30 19:53:40 +00:00
hash.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
heapam.h Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
hio.h Repair race condition introduced into heap_update() in 7.1 --- 2001-05-16 22:35:12 +00:00
htup.h Improve comments for xlog item size #defines. 2001-03-25 22:40:58 +00:00
ibit.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
iqual.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
istrat.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
itup.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
nbtree.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
printtup.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
relscan.h Remove RelationGetBufferWithBuffer(), which is horribly confused about 2001-06-09 18:16:59 +00:00
rmgr.h XLOG stuff for sequences. 2000-11-30 01:47:33 +00:00
rtree.h Tweak StrategyEvaluation data structure to eliminate hardwired limit on 2001-05-30 19:53:40 +00:00
rtscan.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
sdir.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
skey.h Remove RelationGetBufferWithBuffer(), which is horribly confused about 2001-06-09 18:16:59 +00:00
strat.h Tweak StrategyEvaluation data structure to eliminate hardwired limit on 2001-05-30 19:53:40 +00:00
transam.h Oops, only wanted python change in the last commit. Backing out. 2001-05-25 15:45:34 +00:00
tupdesc.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
tupmacs.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
tuptoaster.h Rewrite of planner statistics-gathering code. ANALYZE is now available as 2001-05-07 00:43:27 +00:00
valid.h Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
xact.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
xlog.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
xlogdefs.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
xlogutils.h pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00