git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b27c90b) | patch
Unify drop-by-OID functions
Tue, 9 Jun 2020 07:10:14 +0000 (09:10 +0200)
Tue, 9 Jun 2020 07:39:46 +0000 (09:39 +0200)
commit b1d32d3e3230f00b5baba08f75b4f665c7d6dac6
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
23 files changed:
src/backend/catalog/aclchk.c diff | blob | blame | history
src/backend/catalog/dependency.c diff | blob | blame | history
src/backend/catalog/objectaddress.c diff | blob | blame | history
src/backend/catalog/pg_collation.c diff | blob | blame | history
src/backend/catalog/pg_conversion.c diff | blob | blame | history
src/backend/commands/amcmds.c diff | blob | blame | history
src/backend/commands/event_trigger.c diff | blob | blame | history
src/backend/commands/foreigncmds.c diff | blob | blame | history
src/backend/commands/functioncmds.c diff | blob | blame | history
src/backend/commands/opclasscmds.c diff | blob | blame | history
src/backend/commands/proclang.c diff | blob | blame | history
src/backend/commands/publicationcmds.c diff | blob | blame | history
src/backend/commands/schemacmds.c diff | blob | blame | history
src/backend/commands/tsearchcmds.c diff | blob | blame | history
src/include/catalog/objectaddress.h diff | blob | blame | history
src/include/catalog/pg_collation.h diff | blob | blame | history
src/include/catalog/pg_conversion.h diff | blob | blame | history
src/include/commands/defrem.h diff | blob | blame | history
src/include/commands/event_trigger.h diff | blob | blame | history
src/include/commands/proclang.h diff | blob | blame | history
src/include/commands/publicationcmds.h diff | blob | blame | history
src/include/commands/schemacmds.h diff | blob | blame | history
src/include/utils/acl.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /