Content-Length: 281338 | pFad | http://github.com/postgrespro/postgres/commit/8082bea2b06eb6bcd6cce4cc7801094c17045b4f
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
Fetched URL: http://github.com/postgrespro/postgres/commit/8082bea2b06eb6bcd6cce4cc7801094c17045b4f
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments