Unify drop-by-OID functions

Peter Eisentraut <peter@eisentraut.org>

Commit: b1d32d3e3230f00b5baba08f75b4f665c7d6dac6
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2020-06-09T07:39:46Z
Releases: 14.0
Unify drop-by-OID functions

There are a number of Remove${Something}ById() functions that are
essentially identical in structure and only different in which catalog
they are working on.  Refactor this to be one generic function.  The
information about which oid column, index, etc. to use was already
available in ObjectProperty for most catalogs, in a few cases it was
easily added.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/331d9661-1743-857f-1cbb-d5728bcd62cb%402ndquadrant.com

Files

Discussion