Files

52 lines
1.9 KiB
Plaintext

### Replica identity of orders (d = default, primary key only)
relname | relreplident
---------+--------------
orders | d
(1 row)
### Four statements, one transaction each
### Topic shop.public.orders in WAL order (p = partition). The two op=r records are the initial snapshot.
p=1 op=r key={"id":2} lsn=30425656 txId=774 snapshot=last before=null after={"id":2,"customer":"ravi","status":"NEW","amount_cents":2500}
p=0 op=r key={"id":1} lsn=30425656 txId=774 snapshot=first before=null after={"id":1,"customer":"asha","status":"NEW","amount_cents":1500}
p=0 op=c key={"id":3} lsn=30425880 txId=775 snapshot=false before=null after={"id":3,"customer":"meera","status":"NEW","amount_cents":999}
p=0 op=u key={"id":3} lsn=30426168 txId=776 snapshot=false before=null after={"id":3,"customer":"meera","status":"PAID","amount_cents":999}
p=0 op=u key={"id":3} lsn=30426312 txId=777 snapshot=false before=null after={"id":3,"customer":"meera","status":"PAID","amount_cents":1099}
p=0 op=d key={"id":3} lsn=30426456 txId=778 snapshot=false before={"id":3,"customer":"","status":"","amount_cents":0} after=null
p=0 key={"id":3} TOMBSTONE (null value)
### The raw insert envelope for id 3, exactly as Kafka stores it (value, pretty-printed with jq)
{
"before": null,
"after": {
"id": 3,
"customer": "meera",
"status": "NEW",
"amount_cents": 999
},
"source": {
"version": "3.7.1.Final",
"connector": "postgresql",
"name": "shop",
"ts_ms": 1795939109105,
"snapshot": "false",
"db": "shop",
"sequence": "[null,\"30425880\"]",
"ts_us": 1795939109105717,
"ts_ns": 1795939109105717000,
"schema": "public",
"table": "orders",
"txId": 775,
"lsn": 30425880,
"xmin": null,
"origin": null,
"origin_lsn": null
},
"transaction": null,
"op": "c",
"ts_ms": 1795939109620,
"ts_us": 1795939109620915,
"ts_ns": 1795939109620915228
}