]> granicus.if.org Git - postgresql/commit
Fix violations of CatalogTupleInsert/Update/Delete abstraction.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jun 2017 14:26:46 +0000 (10:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jun 2017 14:26:46 +0000 (10:26 -0400)
commita571c7f661a7b601aafcb12196d004cdb8b8cb23
treec2184ffa0d7bd7cd91dac32abadc9e7b6c151e78
parentd3c3f2b1e25cc96d3078bf4d47a2f58fefb70560
Fix violations of CatalogTupleInsert/Update/Delete abstraction.

In commits 2f5c9d9c9 and ab0289651 we invented an abstraction layer
to insulate catalog manipulations from direct heap update calls.
But evidently some patches that hadn't landed in-tree at that point
didn't get the memo completely.  Fix a couple of direct calls to
simple_heap_delete to use CatalogTupleDelete instead; these appear
to have been added in commits 7c4f52409 and 7b504eb28.  This change is
purely cosmetic ATM, but there's no point in having an abstraction layer
if we allow random code to break it.

Masahiko Sawada and Tom Lane

Discussion: https://postgr.es/m/CAD21AoDOPRSVcwbnCN3Y1n_68ATyTspsU6=ygtHz_uY0VcdZ8A@mail.gmail.com
src/backend/catalog/pg_subscription.c
src/backend/commands/statscmds.c