Make it possible to execute crashed CREATE/DROP commands again.
Hiroshi Inoue <inoue@tpf.co.jp>
Make it possible to execute crashed CREATE/DROP commands again. Now indexes of pg_class and pg_type are unique indexes and guarantee the uniqueness of correponding attributes. heap_create() was changed to take another boolean parameter which allows to postpone the creation of disk file. The name of rd_nonameunlinked was changed to rd_unlinked. It is used generally(not only for noname relations) now. Requires initdb.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootparse.y | modified | +17 −3 |
| src/backend/bootstrap/bootscanner.l | modified | +2 −1 |
| src/backend/catalog/genbki.sh.in | modified | +15 −1 |
| src/backend/catalog/heap.c | modified | +46 −17 |
| src/backend/catalog/index.c | modified | +6 −2 |
| src/backend/executor/execAmi.c | modified | +2 −2 |
| src/backend/storage/smgr/md.c | modified | +46 −13 |
| src/backend/storage/smgr/smgr.c | modified | +3 −2 |
| src/backend/utils/cache/relcache.c | modified | +5 −5 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/heap.h | modified | +3 −2 |
| src/include/catalog/indexing.h | modified | +5 −5 |
| src/include/postgres.h | modified | +2 −1 |
| src/include/utils/rel.h | modified | +2 −2 |