mor
07/28/2026, 6:50 AMrelation_tuple rows were logically deleted (their deleted_xid was set). We're not sure what caused it, but we found that the following query was executed six times:
UPDATE relation_tuple
SET deleted_xid = $1
WHERE deleted_xid = $2
AND namespace = $3;
Are you familiar with this query? Could you explain exactly what it is supposed to do and under what circumstances SpiceDB executes it?
2. I noticed entries in the alembic_version table such as create-relationship-counters-table and add-index-for-transaction-gc.
What exactly do these values represent? Are they migration identifiers, and what changes do they indicate were applied to the database?yetitwo
07/28/2026, 7:40 AMDeleteRelationships api will use that query if you don't give it any additional filters.
1. yes, migration identifiers. it's a string identifier for a migration that's defined in the SpiceDB code. you're welcome to [inspect them](https://github.com/authzed/spicedb/tree/main/internal/datastore/postgres/migrations).mor
07/28/2026, 7:45 AMmor
07/28/2026, 7:52 AMyetitwo
07/28/2026, 8:06 AMyetitwo
07/28/2026, 8:08 AMzz_ files is one of the migrations, and they're in numeric order.mor
07/28/2026, 8:11 AMyetitwo
07/28/2026, 8:02 PMmor
07/29/2026, 4:55 AMyetitwo
07/29/2026, 7:48 AM