mirror of
https://github.com/postgres/postgres.git
synced 2025-09-17 22:22:26 +03:00
Add infrastructure for mapping relfilenodes to relation OIDs.
Future patches are expected to introduce logical replication that works by decoding WAL. WAL contains relfilenodes rather than relation OIDs, so this infrastructure will be needed to find the relation OID based on WAL contents. If logical replication does not make it into this release, we probably should consider reverting this, since it will add some overhead to DDL operations that create new relations. One additional index insert per pg_class row is not a large overhead, but it's more than zero. Another way of meeting the needs of logical replication would be to the relation OID to WAL, but that would burden DML operations, not only DDL. Andres Freund, with some changes by me. Design review, in earlier versions, by Álvaro Herrera.
This commit is contained in:
doc/src/sgml
src
backend
utils
include
test
regress
2
src/backend/utils/cache/inval.c
vendored
2
src/backend/utils/cache/inval.c
vendored
@@ -178,7 +178,7 @@ static int maxSharedInvalidMessagesArray;
|
||||
*/
|
||||
|
||||
#define MAX_SYSCACHE_CALLBACKS 32
|
||||
#define MAX_RELCACHE_CALLBACKS 5
|
||||
#define MAX_RELCACHE_CALLBACKS 10
|
||||
|
||||
static struct SYSCACHECALLBACK
|
||||
{
|
||||
|
Reference in New Issue
Block a user