Commit 9de97c55 authored by Neil Conway's avatar Neil Conway

Trivial code clarity improvement to UpdateStats(); no functional change.

parent 368739dc
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.256 2005/05/19 21:35:45 tgl Exp $ * $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.257 2005/06/20 02:07:47 neilc Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -1293,10 +1293,10 @@ UpdateStats(Oid relid, double reltuples) ...@@ -1293,10 +1293,10 @@ UpdateStats(Oid relid, double reltuples)
} }
} }
if (!pg_class_scan) if (in_place_upd)
heap_freetuple(tuple);
else
heap_endscan(pg_class_scan); heap_endscan(pg_class_scan);
else
heap_freetuple(tuple);
/* /*
* We shouldn't have to do this, but we do... Modify the reldesc in * We shouldn't have to do this, but we do... Modify the reldesc in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment