agora inbox for [email protected]help / color / mirror / Atom feed
[PATCH v39 3/8] Allow to prolong life span of transition tables until transaction end 964+ messages / 3 participants [nested] [flat]
* [PATCH v39 3/8] Allow to prolong life span of transition tables until transaction end @ 2019-12-20 01:09 Yugo Nagata <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Yugo Nagata @ 2019-12-20 01:09 UTC (permalink / raw) Originally, tuplestores of AFTER trigger's transition tables were freed for each query depth. For our IVM implementation, we would like to prolong life of the tuplestores because we have to preserve them for a whole query assuming that some base tables might be changed in some trigger functions. --- src/backend/commands/trigger.c | 80 ++++++++++++++++++++++++++++++++-- src/include/commands/trigger.h | 2 + 2 files changed, 78 insertions(+), 4 deletions(-) diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 401baddbfc6..dc746bccc8e 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -3844,6 +3844,10 @@ typedef struct AfterTriggerEventList * end of the list, so it is relatively easy to discard them. The event * list chunks themselves are stored in event_cxt. * + * prolonged_tuplestored is a list of transition table tuplestores whose + * life are prolonged to the end of the outmost query instead of each nested + * query. + * * query_depth is the current depth of nested AfterTriggerBeginQuery calls * (-1 when the stack is empty). * @@ -3909,6 +3913,7 @@ typedef struct AfterTriggersData SetConstraintState state; /* the active S C state */ AfterTriggerEventList events; /* deferred-event list */ MemoryContext event_cxt; /* memory context for events, if any */ + List *prolonged_tuplestores; /* list of prolonged tuplestores */ /* per-query-level data: */ AfterTriggersQueryData *query_stack; /* array of structs shown below */ @@ -3957,6 +3962,7 @@ struct AfterTriggersTableData bool closed; /* true when no longer OK to add tuples */ bool before_trig_done; /* did we already queue BS triggers? */ bool after_trig_done; /* did we already queue AS triggers? */ + bool prolonged; /* are transition tables prolonged? */ AfterTriggerEventList after_trig_events; /* if so, saved list pointer */ /* "old" transition table for UPDATE/DELETE, if any */ @@ -4003,6 +4009,7 @@ static void TransitionTableAddTuple(EState *estate, TupleTableSlot *original_insert_tuple, Tuplestorestate *tuplestore); static void AfterTriggerFreeQuery(AfterTriggersQueryData *qs); +static void release_or_prolong_tuplestore(Tuplestorestate *ts, bool prolonged); static SetConstraintState SetConstraintStateCreate(int numalloc); static SetConstraintState SetConstraintStateCopy(SetConstraintState origstate); static SetConstraintState SetConstraintStateAddItem(SetConstraintState state, @@ -4898,6 +4905,45 @@ afterTriggerInvokeEvents(AfterTriggerEventList *events, } +/* + * SetTransitionTablePreserved + * + * Prolong lifespan of transition tables corresponding specified relid and + * command type to the end of the outmost query instead of each nested query. + * This enables to use nested AFTER trigger's transition tables from outer + * query's triggers. Currently, only immediate incremental view maintenance + * uses this. + */ +void +SetTransitionTablePreserved(Oid relid, CmdType cmdType) +{ + AfterTriggersTableData *table; + AfterTriggersQueryData *qs; + bool found = false; + ListCell *lc; + + /* Check state, like AfterTriggerSaveEvent. */ + if (afterTriggers.query_depth < 0) + elog(ERROR, "SetTransitionTablePreserved() called outside of query"); + + qs = &afterTriggers.query_stack[afterTriggers.query_depth]; + + foreach(lc, qs->tables) + { + table = (AfterTriggersTableData *) lfirst(lc); + if (table->relid == relid && table->cmdType == cmdType && + table->closed) + { + table->prolonged = true; + found = true; + } + } + + if (!found) + elog(ERROR,"could not find table with OID %d and command type %d", relid, cmdType); +} + + /* * GetAfterTriggersTableData * @@ -5138,6 +5184,7 @@ AfterTriggerBeginXact(void) afterTriggers.firing_depth = 0; afterTriggers.batch_callbacks = NIL; afterTriggers.firing_batch_callbacks = false; + afterTriggers.prolonged_tuplestores = NIL; /* * Verify that there is no leftover state remaining. If these assertions @@ -5312,11 +5359,11 @@ AfterTriggerFreeQuery(AfterTriggersQueryData *qs) ts = table->old_tuplestore; table->old_tuplestore = NULL; if (ts) - tuplestore_end(ts); + release_or_prolong_tuplestore(ts, table->prolonged); ts = table->new_tuplestore; table->new_tuplestore = NULL; if (ts) - tuplestore_end(ts); + release_or_prolong_tuplestore(ts, table->prolonged); if (table->storeslot) { TupleTableSlot *slot = table->storeslot; @@ -5334,8 +5381,33 @@ AfterTriggerFreeQuery(AfterTriggersQueryData *qs) qs->tables = NIL; list_free_deep(tables); - list_free_deep(qs->batch_callbacks); - qs->batch_callbacks = NIL; + /* Release prolonged tuplestores at the end of the outmost query */ + if (afterTriggers.query_depth == 0) + { + foreach(lc, afterTriggers.prolonged_tuplestores) + { + ts = (Tuplestorestate *) lfirst(lc); + if (ts) + tuplestore_end(ts); + } + afterTriggers.prolonged_tuplestores = NIL; + } +} + +/* + * Release the tuplestore, or append it to the prolonged tuplestores list. + */ +static void +release_or_prolong_tuplestore(Tuplestorestate *ts, bool prolonged) +{ + if (prolonged && afterTriggers.query_depth > 0) + { + MemoryContext oldcxt = MemoryContextSwitchTo(CurTransactionContext); + afterTriggers.prolonged_tuplestores = lappend(afterTriggers.prolonged_tuplestores, ts); + MemoryContextSwitchTo(oldcxt); + } + else + tuplestore_end(ts); } diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index 0c3d485abf4..f0f052cc759 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -269,6 +269,8 @@ extern void AfterTriggerEndSubXact(bool isCommit); extern void AfterTriggerSetState(ConstraintsSetStmt *stmt); extern bool AfterTriggerPendingOnRel(Oid relid); +extern void SetTransitionTablePreserved(Oid relid, CmdType cmdType); + /* * in utils/adt/ri_triggers.c -- 2.43.0 --Multipart=_Fri__3_Jul_2026_19_11_16_+0900_CskxSIu_iGcDMEyM Content-Type: text/x-diff; name="v39-0002-Add-relisivm-column-to-pg_class-system-catalog.patch" Content-Disposition: attachment; filename="v39-0002-Add-relisivm-column-to-pg_class-system-catalog.patch" Content-Transfer-Encoding: 7bit ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH v4 3/5] Use libpq-be-fe-helpers.h wrappers more @ 2024-01-29 07:24 Heikki Linnakangas <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Heikki Linnakangas @ 2024-01-29 07:24 UTC (permalink / raw) --- .../libpqwalreceiver/libpqwalreceiver.c | 151 ++++-------------- 1 file changed, 33 insertions(+), 118 deletions(-) diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index 41cf3dc853..ae48dbafb5 100644 --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c @@ -106,8 +106,6 @@ static WalReceiverFunctionsType PQWalReceiverFunctions = { }; /* Prototypes for private functions */ -static PGresult *libpqrcv_PQexec(PGconn *streamConn, const char *query); -static PGresult *libpqrcv_PQgetResult(PGconn *streamConn); static char *stringlist_to_identifierstr(PGconn *conn, List *strings); /* @@ -216,8 +214,9 @@ libpqrcv_connect(const char *conninfo, bool logical, bool must_use_password, { PGresult *res; - res = libpqrcv_PQexec(conn->streamConn, - ALWAYS_SECURE_SEARCH_PATH_SQL); + res = libpqsrv_exec(conn->streamConn, + ALWAYS_SECURE_SEARCH_PATH_SQL, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (PQresultStatus(res) != PGRES_TUPLES_OK) { PQclear(res); @@ -389,7 +388,9 @@ libpqrcv_identify_system(WalReceiverConn *conn, TimeLineID *primary_tli) * Get the system identifier and timeline ID as a DataRow message from the * primary server. */ - res = libpqrcv_PQexec(conn->streamConn, "IDENTIFY_SYSTEM"); + res = libpqsrv_exec(conn->streamConn, + "IDENTIFY_SYSTEM", + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (PQresultStatus(res) != PGRES_TUPLES_OK) { PQclear(res); @@ -522,7 +523,9 @@ libpqrcv_startstreaming(WalReceiverConn *conn, options->proto.physical.startpointTLI); /* Start streaming. */ - res = libpqrcv_PQexec(conn->streamConn, cmd.data); + res = libpqsrv_exec(conn->streamConn, + cmd.data, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); pfree(cmd.data); if (PQresultStatus(res) == PGRES_COMMAND_OK) @@ -552,7 +555,7 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli) PGresult *res; /* - * Send copy-end message. As in libpqrcv_PQexec, this could theoretically + * Send copy-end message. As in libpqsrv_exec, this could theoretically * block, but the risk seems small. */ if (PQputCopyEnd(conn->streamConn, NULL) <= 0 || @@ -572,7 +575,8 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli) * If we had not yet received CopyDone from the backend, PGRES_COPY_OUT is * also possible in case we aborted the copy in mid-stream. */ - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (PQresultStatus(res) == PGRES_TUPLES_OK) { /* @@ -587,7 +591,8 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli) PQclear(res); /* the result set should be followed by CommandComplete */ - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); } else if (PQresultStatus(res) == PGRES_COPY_OUT) { @@ -601,7 +606,8 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli) pchomp(PQerrorMessage(conn->streamConn))))); /* CommandComplete should follow */ - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); } if (PQresultStatus(res) != PGRES_COMMAND_OK) @@ -612,7 +618,8 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli) PQclear(res); /* Verify that there are no more results */ - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (res != NULL) ereport(ERROR, (errcode(ERRCODE_PROTOCOL_VIOLATION), @@ -637,7 +644,9 @@ libpqrcv_readtimelinehistoryfile(WalReceiverConn *conn, * Request the primary to send over the history file for given timeline. */ snprintf(cmd, sizeof(cmd), "TIMELINE_HISTORY %u", tli); - res = libpqrcv_PQexec(conn->streamConn, cmd); + res = libpqsrv_exec(conn->streamConn, + cmd, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (PQresultStatus(res) != PGRES_TUPLES_OK) { PQclear(res); @@ -667,107 +676,6 @@ libpqrcv_readtimelinehistoryfile(WalReceiverConn *conn, PQclear(res); } -/* - * Send a query and wait for the results by using the asynchronous libpq - * functions and socket readiness events. - * - * The function is modeled on libpqsrv_exec(), with the behavior difference - * being that it calls ProcessWalRcvInterrupts(). As an optimization, it - * skips try/catch, since all errors terminate the process. - * - * May return NULL, rather than an error result, on failure. - */ -static PGresult * -libpqrcv_PQexec(PGconn *streamConn, const char *query) -{ - PGresult *lastResult = NULL; - - /* - * PQexec() silently discards any prior query results on the connection. - * This is not required for this function as it's expected that the caller - * (which is this library in all cases) will behave correctly and we don't - * have to be backwards compatible with old libpq. - */ - - /* - * Submit the query. Since we don't use non-blocking mode, this could - * theoretically block. In practice, since we don't send very long query - * strings, the risk seems negligible. - */ - if (!PQsendQuery(streamConn, query)) - return NULL; - - for (;;) - { - /* Wait for, and collect, the next PGresult. */ - PGresult *result; - - result = libpqrcv_PQgetResult(streamConn); - if (result == NULL) - break; /* query is complete, or failure */ - - /* - * Emulate PQexec()'s behavior of returning the last result when there - * are many. We are fine with returning just last error message. - */ - PQclear(lastResult); - lastResult = result; - - if (PQresultStatus(lastResult) == PGRES_COPY_IN || - PQresultStatus(lastResult) == PGRES_COPY_OUT || - PQresultStatus(lastResult) == PGRES_COPY_BOTH || - PQstatus(streamConn) == CONNECTION_BAD) - break; - } - - return lastResult; -} - -/* - * Perform the equivalent of PQgetResult(), but watch for interrupts. - */ -static PGresult * -libpqrcv_PQgetResult(PGconn *streamConn) -{ - /* - * Collect data until PQgetResult is ready to get the result without - * blocking. - */ - while (PQisBusy(streamConn)) - { - int rc; - - /* - * We don't need to break down the sleep into smaller increments, - * since we'll get interrupted by signals and can handle any - * interrupts here. - */ - rc = WaitLatchOrSocket(MyLatch, - WL_EXIT_ON_PM_DEATH | WL_SOCKET_READABLE | - WL_LATCH_SET, - PQsocket(streamConn), - 0, - WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); - - /* Interrupted? */ - if (rc & WL_LATCH_SET) - { - ResetLatch(MyLatch); - CHECK_FOR_INTERRUPTS(); - } - - /* Consume whatever data is available from the socket */ - if (PQconsumeInput(streamConn) == 0) - { - /* trouble; return NULL */ - return NULL; - } - } - - /* Now we can collect and return the next PGresult */ - return PQgetResult(streamConn); -} - /* * Disconnect connection to primary, if any. */ @@ -828,13 +736,15 @@ libpqrcv_receive(WalReceiverConn *conn, char **buffer, { PGresult *res; - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (PQresultStatus(res) == PGRES_COMMAND_OK) { PQclear(res); /* Verify that there are no more results. */ - res = libpqrcv_PQgetResult(conn->streamConn); + res = libpqsrv_get_result(conn->streamConn, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); if (res != NULL) { PQclear(res); @@ -985,7 +895,9 @@ libpqrcv_create_slot(WalReceiverConn *conn, const char *slotname, appendStringInfoString(&cmd, " PHYSICAL RESERVE_WAL"); } - res = libpqrcv_PQexec(conn->streamConn, cmd.data); + res = libpqsrv_exec(conn->streamConn, + cmd.data, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); pfree(cmd.data); if (PQresultStatus(res) != PGRES_TUPLES_OK) @@ -1026,7 +938,8 @@ libpqrcv_alter_slot(WalReceiverConn *conn, const char *slotname, quote_identifier(slotname), failover ? "true" : "false"); - res = libpqrcv_PQexec(conn->streamConn, cmd.data); + res = libpqsrv_exec(conn->streamConn, cmd.data, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); pfree(cmd.data); if (PQresultStatus(res) != PGRES_COMMAND_OK) @@ -1139,7 +1052,9 @@ libpqrcv_exec(WalReceiverConn *conn, const char *query, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("the query interface requires a database connection"))); - pgres = libpqrcv_PQexec(conn->streamConn, query); + pgres = libpqsrv_exec(conn->streamConn, + query, + WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE); switch (PQresultStatus(pgres)) { -- 2.39.3 ----Next_Part(Mon_Jan_29_16_32_06_2024_387)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="v4-0004-Use-existing-AmWalReceiverProcess-function.patch" ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
* [PATCH] Turn protective Assert() into elog(ERROR) @ 2026-05-01 07:23 Álvaro Herrera <[email protected]> 0 siblings, 0 replies; 964+ messages in thread From: Álvaro Herrera @ 2026-05-01 07:23 UTC (permalink / raw) --- src/backend/access/index/genam.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index 97d44b84622..7d401e3f137 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -396,11 +396,13 @@ systable_beginscan(Relation heapRelation, /* * If this backend promised that it won't access shared catalogs during - * logical decoding, this it the right place to verify. + * logical decoding, this is the right place to verify. */ - Assert(!HistoricSnapshotActive() || - accessSharedCatalogsInDecoding || - !heapRelation->rd_rel->relisshared); + if (HistoricSnapshotActive() && + !accessSharedCatalogsInDecoding && + heapRelation->rd_rel->relisshared) + elog(ERROR, + "cannot access shared catalog with database-specific historic snapshot"); if (indexOK && !IgnoreSystemIndexes && -- 2.47.3 --k6vxbflu22czkb7a-- ^ permalink raw reply [nested|flat] 964+ messages in thread
end of thread, other threads:[~2026-05-01 07:23 UTC | newest] Thread overview: 964+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-12-20 01:09 [PATCH v39 3/8] Allow to prolong life span of transition tables until transaction end Yugo Nagata <[email protected]> 2024-01-29 07:24 [PATCH v4 3/5] Use libpq-be-fe-helpers.h wrappers more Heikki Linnakangas <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]> 2026-05-01 07:23 [PATCH] Turn protective Assert() into elog(ERROR) Álvaro Herrera <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox