db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

A savepoint has its own xid

Rows written after SAVEPOINT carry the subtransaction's xid in xmin, not the top-level one.

task

In one transaction insert id 1, SAVEPOINT a, insert id 2, commit. Return count(DISTINCT xmin::text) over both rows.

hints