postgresql/src/backend
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
..
access Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
bootstrap Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
catalog Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
commands Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
executor Make planner compute the number of hash buckets the same way that 2001-06-11 00:17:08 +00:00
lib dllist.c is included in the frontend libpq interface via symlink. 2001-06-02 15:16:55 +00:00
libpq Remove error report from pq_endmessage when pq_putmessage fails. The 2001-04-16 01:46:57 +00:00
main Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
nodes Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
optimizer Make planner compute the number of hash buckets the same way that 2001-06-11 00:17:08 +00:00
parser Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
po Mark many strings in backend not covered by elog for translation. Also, 2001-06-03 14:53:56 +00:00
port Fix broken $Header$ declaration. 2001-05-30 18:32:29 +00:00
postmaster Move temporary files into 'pg_tempfiles' subdirectory of each database 2001-06-11 04:12:29 +00:00
regex pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
rewrite Permission checking wasn't quite right for insert/update/delete rules, 2001-05-03 21:16:48 +00:00
storage Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
tcop Allow GRANT/REVOKE to/from more than one user per invocation. Command tag 2001-06-09 23:21:55 +00:00
tioga Remove dashes in comments that don't need them, rewrap with pgindent. 2001-03-22 06:16:21 +00:00
utils Clean up various to-do items associated with system indexes: 2001-06-12 05:55:50 +00:00
Makefile Native Language Support (NLS) 2001-06-02 18:25:18 +00:00