8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3428ef7 commit 8082beaCopy full SHA for 8082bea
src/backend/commands/statscmds.c
@@ -230,6 +230,12 @@ CreateStatistics(CreateStatsStmt *stmt)
230
statoid = HeapTupleGetOid(htup);
231
heap_freetuple(htup);
232
heap_close(statrel, RowExclusiveLock);
233
+
234
+ /*
235
+ * Invalidate relcache so that others see the new statistics.
236
+ */
237
+ CacheInvalidateRelcache(rel);
238
239
relation_close(rel, NoLock);
240
241
/*
@@ -250,11 +256,6 @@ CreateStatistics(CreateStatsStmt *stmt)
250
256
251
257
ObjectAddressSet(address, StatisticExtRelationId, statoid);
252
258
253
- /*
254
- * Invalidate relcache so that others see the new statistics.
255
- */
- CacheInvalidateRelcache(rel);
-
259
return address;
260
}
261
0 commit comments