diff options
Diffstat (limited to 'src/backend/libpq/hba.c')
-rw-r--r-- | src/backend/libpq/hba.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 7a935f34b58..23c8b5de6b4 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -386,7 +386,7 @@ tokenize_file(const char *filename, FILE *file, MemoryContext linecxt; MemoryContext oldcxt; - linecxt = AllocSetContextCreate(TopMemoryContext, + linecxt = AllocSetContextCreate(CurrentMemoryContext, "tokenize file cxt", ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, @@ -1770,7 +1770,8 @@ load_hba(void) FreeFile(file); /* Now parse all the lines */ - hbacxt = AllocSetContextCreate(TopMemoryContext, + Assert(PostmasterContext); + hbacxt = AllocSetContextCreate(PostmasterContext, "hba parser context", ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_MINSIZE, @@ -2147,7 +2148,8 @@ load_ident(void) FreeFile(file); /* Now parse all the lines */ - ident_context = AllocSetContextCreate(TopMemoryContext, + Assert(PostmasterContext); + ident_context = AllocSetContextCreate(PostmasterContext, "ident parser context", ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_MINSIZE, |