Updates in Heaps (cont)
PostgreSQL tuple update:
heap_update(Relation relation,
ItemPointer otid,
HeapTuple newtup, ...,
CommandId cid, ...)
|
- essentially does
delete(otid) , then insert(newtup)
- also, sets old tuple's
ctid field to reference new tuple
- can also update-in-place if no referencing transactions
|