You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Provide CatalogTupleDelete() as a wrapper around simple_heap_delete().
This extends the work done in commit2f5c9d9 to provide a more nearlycomplete abstraction layer hiding the details of index updating for catalogchanges. That commit only invented abstractions for catalog inserts andupdates, leaving nearby code for catalog deletes still calling theheap-level routines directly. That seems rather ugly from here, and itdoes little to help if we ever want to shift to a storage system in whichindexing work is needed at delete time.Hence, create a wrapper function CatalogTupleDelete(), and replace callsof simple_heap_delete() on catalog tuples with it. There are now veryfew direct calls of [simple_]heap_delete remaining in the tree.Discussion:https://postgr.es/m/462.1485902736@sss.pgh.pa.us