Clean up API for ambulkdelete/amvacuumcleanup as per today's discussion.
Tom Lane <tgl@sss.pgh.pa.us>
Clean up API for ambulkdelete/amvacuumcleanup as per today's discussion. This formulation requires every AM to provide amvacuumcleanup, unlike before, but it's surely a whole lot cleaner. Also, add an 'amstorage' column to pg_am so that we can get rid of hardwired knowledge in DefineOpClass().
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +15 −1 |
| doc/src/sgml/indexam.sgml | modified | +27 −19 |
| src/backend/access/gin/ginvacuum.c | modified | +25 −8 |
| src/backend/access/gist/gistvacuum.c | modified | +33 −49 |
| src/backend/access/hash/hash.c | modified | +35 −24 |
| src/backend/access/index/indexam.c | modified | +12 −19 |
| src/backend/access/nbtree/nbtree.c | modified | +18 −24 |
| src/backend/commands/cluster.c | modified | +7 −7 |
| src/backend/commands/opclasscmds.c | modified | +12 −16 |
| src/backend/commands/vacuum.c | modified | +16 −51 |
| src/backend/commands/vacuumlazy.c | modified | +43 −104 |
| src/include/access/genam.h | modified | +28 −20 |
| src/include/access/hash.h | modified | +2 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_am.h | modified | +22 −20 |
| src/include/catalog/pg_proc.h | modified | +11 −8 |