* RelationMapFinishBootstrap * * Write out the initial relation mapping files at the completion of * bootstrap. All the mapped files should have been made known to us * via RelationMapUpdateMap calls. */
| 564 | * via RelationMapUpdateMap calls. |
| 565 | */ |
| 566 | void |
| 567 | RelationMapFinishBootstrap(void) |
| 568 | { |
| 569 | Assert(IsBootstrapProcessingMode()); |
| 570 | |
| 571 | /* Shouldn't be anything "pending" ... */ |
| 572 | Assert(active_shared_updates.num_mappings == 0); |
| 573 | Assert(active_local_updates.num_mappings == 0); |
| 574 | Assert(pending_shared_updates.num_mappings == 0); |
| 575 | Assert(pending_local_updates.num_mappings == 0); |
| 576 | |
| 577 | /* Write the files; no WAL or sinval needed */ |
| 578 | write_relmap_file(true, &shared_map, false, false, false, |
| 579 | InvalidOid, GLOBALTABLESPACE_OID, NULL); |
| 580 | write_relmap_file(false, &local_map, false, false, false, |
| 581 | MyDatabaseId, MyDatabaseTableSpace, DatabasePath); |
| 582 | } |
| 583 | |
| 584 | /* |
| 585 | * RelationMapInitialize |
no test coverage detected