* CacheInvalidateRelmap * Register invalidation of the relation mapping for a database, * or for the shared catalogs if databaseId is zero. * * Sending this type of invalidation msg forces other backends to re-read * the indicated relation mapping file. It is also necessary to send a * relcache inval for the specific relations whose mapping has been altered, * else the relcache won't get
| 1501 | * replaying WAL as well as when creating it. |
| 1502 | */ |
| 1503 | void |
| 1504 | CacheInvalidateRelmap(Oid databaseId) |
| 1505 | { |
| 1506 | SharedInvalidationMessage msg; |
| 1507 | |
| 1508 | msg.rm.id = SHAREDINVALRELMAP_ID; |
| 1509 | msg.rm.dbId = databaseId; |
| 1510 | /* check AddCatcacheInvalidationMessage() for an explanation */ |
| 1511 | VALGRIND_MAKE_MEM_DEFINED(&msg, sizeof(msg)); |
| 1512 | |
| 1513 | SendSharedInvalidMessages(&msg, 1); |
| 1514 | } |
| 1515 | |
| 1516 | |
| 1517 | /* |
no test coverage detected