Content-Length: 271957 | pFad | https://github.com/postgrespro/postgres/commit/1c61fd8b527954f0ec522e5e60a11ce82628b681

9E Fix stack variable scope from previous commit. · postgrespro/postgres@1c61fd8 · GitHub
Skip to content

Commit 1c61fd8

Browse files
committed
Fix stack variable scope from previous commit.
The defect came from me, not from that commit's credited author. Per buildfarm members olingo and grassquit. Discussion: https://postgr.es/m/20240903192030.1e@rfd.leadboat.com
1 parent ed1b1ee commit 1c61fd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_visibility/pg_visibility.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ collect_visibility_data(Oid relid, bool include_pd)
490490
BlockNumber blkno;
491491
Buffer vmbuffer = InvalidBuffer;
492492
BufferAccessStrategy bstrategy = GetAccessStrategy(BAS_BULKREAD);
493+
BlockRangeReadStreamPrivate p;
493494
ReadStream *stream = NULL;
494495

495496
rel = relation_open(relid, AccessShareLock);
@@ -505,8 +506,6 @@ collect_visibility_data(Oid relid, bool include_pd)
505506
/* Create a stream if reading main fork. */
506507
if (include_pd)
507508
{
508-
BlockRangeReadStreamPrivate p;
509-
510509
p.current_blocknum = 0;
511510
p.last_exclusive = nblocks;
512511
stream = read_stream_begin_relation(READ_STREAM_FULL,

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: https://github.com/postgrespro/postgres/commit/1c61fd8b527954f0ec522e5e60a11ce82628b681

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy