Content-Length: 259602 | pFad | http://github.com/postgrespro/postgres/commit/2bbdc6875d03bb826a4fd113eac45a72c68bc929

C1 dsa: Cope with the possibility that SIZE_MAX is not defined. · postgrespro/postgres@2bbdc68 · GitHub
Skip to content

Commit 2bbdc68

Browse files
committed
dsa: Cope with the possibility that SIZE_MAX is not defined.
Per buildfarm member gaur and Tom Lane.
1 parent a0ae54d commit 2bbdc68

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/mmgr

1 file changed

+1
-1
lines changed

src/backend/utils/mmgr/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size,
11841184
control->segment_header.freed = false;
11851185
control->segment_header.size = DSA_INITIAL_SEGMENT_SIZE;
11861186
control->handle = control_handle;
1187-
control->max_total_segment_size = SIZE_MAX;
1187+
control->max_total_segment_size = (Size) -1;
11881188
control->total_segment_size = size;
11891189
memset(&control->segment_handles[0], 0,
11901190
sizeof(dsm_handle) * DSA_MAX_SEGMENTS);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2bbdc6875d03bb826a4fd113eac45a72c68bc929

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy