Skip to content

Commit 9de97c5

Browse files
author
Neil Conway
committed
Trivial code clarity improvement to UpdateStats(); no functional change.
1 parent 368739d commit 9de97c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/catalog/index.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.256 2005/05/19 21:35:45 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.257 2005/06/20 02:07:47 neilc Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1293,10 +1293,10 @@ UpdateStats(Oid relid, double reltuples)
12931293
}
12941294
}
12951295

1296-
if (!pg_class_scan)
1297-
heap_freetuple(tuple);
1298-
else
1296+
if (in_place_upd)
12991297
heap_endscan(pg_class_scan);
1298+
else
1299+
heap_freetuple(tuple);
13001300

13011301
/*
13021302
* We shouldn't have to do this, but we do... Modify the reldesc in

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy