File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -261,9 +261,11 @@ Snapshot
261261GetCatalogSnapshot (Oid relid )
262262{
263263 /*
264- * Return historic snapshot if we're doing logical decoding, but
265- * return a non-historic, snapshot if we temporarily are doing up2date
266- * lookups.
264+ * Return historic snapshot while we're doing logical decoding, so we can
265+ * see the appropriate state of the catalog.
266+ *
267+ * This is the primary reason for needing to reset the system caches after
268+ * finishing decoding.
267269 */
268270 if (HistoricSnapshotActive ())
269271 return HistoricSnapshot ;
@@ -352,7 +354,7 @@ SetTransactionSnapshot(Snapshot sourcesnap, TransactionId sourcexid)
352354
353355 Assert (RegisteredSnapshots == 0 );
354356 Assert (FirstXactSnapshot == NULL );
355- Assert (HistoricSnapshotActive ());
357+ Assert (! HistoricSnapshotActive ());
356358
357359 /*
358360 * Even though we are not going to use the snapshot it computes, we must
You can’t perform that action at this time.
0 commit comments