mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Unify src/common/'s definitions of MaxAllocSize.
As threatened in the previous patch, define MaxAllocSize in src/include/common/fe_memutils.h rather than having several copies of it in different src/common/*.c files. This also provides an opportunity to document it better. While this would probably be safe to back-patch, I'll refrain (for now anyway).
This commit is contained in:
@@ -24,10 +24,6 @@
|
||||
#include "utils/memutils.h"
|
||||
#else
|
||||
#include "postgres_fe.h"
|
||||
|
||||
/* It's possible we could use a different value for this in frontend code */
|
||||
#define MaxAllocSize ((Size) 0x3fffffff) /* 1 gigabyte - 1 */
|
||||
|
||||
#endif
|
||||
|
||||
#include "common/saslprep.h"
|
||||
|
Reference in New Issue
Block a user