Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2025-04-04 02:28:59 +0000
committerTomas Vondra2025-04-04 02:43:50 +0000
commit1aff1dc8dfa7584ddbc695e1aae0f767db66326f (patch)
tree5ae66e4f3e39a9bea055568030f4cca984ca17f9 /src/include/utils
parent88f55bc97622bce000a8c90f8ef58dacc926de19 (diff)
Revert "Improve accounting for memory used by shared hash tables"
This reverts commit f5930f9a98ea65d659d41600a138e608988ad122. This broke the expansion of private hash tables, which reallocates the directory. But that's impossible when it's allocated together with the other fields, and dir_realloc() failed with BogusFree. Clearly, this needs rethinking. Discussion: https://postgr.es/m/CAApHDvriCiNkm=v521AP6PKPfyWkJ++jqZ9eqX4cXnhxLv8w-A@mail.gmail.com
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/hsearch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/utils/hsearch.h b/src/include/utils/hsearch.h
index 6c190ce02d4..932cc4f34d9 100644
--- a/src/include/utils/hsearch.h
+++ b/src/include/utils/hsearch.h
@@ -151,8 +151,7 @@ extern void hash_seq_term(HASH_SEQ_STATUS *status);
extern void hash_freeze(HTAB *hashp);
extern Size hash_estimate_size(long num_entries, Size entrysize);
extern long hash_select_dirsize(long num_entries);
-extern Size hash_get_size(const HASHCTL *info, int flags,
- long nelem, bool prealloc);
+extern Size hash_get_shared_size(HASHCTL *info, int flags);
extern void AtEOXact_HashTables(bool isCommit);
extern void AtEOSubXact_HashTables(bool isCommit, int nestDepth);