forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef5e2e9
committed
Remove unnecessary array object_classes[] in dependency.c
object_classes[] provided unnecessary indirection between catalog OIDsand the enum ObjectClass when calling add_object_address(). This arrayhas been originally introduced in30ec316 and was useful because notall relation OIDs were compile-time constants back then, which has notbeen the case for a long time now for all the elements of ObjectClass.This commit removes object_classes[], switching to the catalog OIDswhen calling add_object_address(). This shaves some code while savingin maintenance because it was necessary to maintain the enum ObjectClassand the array in sync when adding new object types.Reported-by: Jeff DavisAuthor: Jelte Fennema-NioReviewed-by: Jian He, Michael PaquierDiscussion:https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com1 parent743112a commitef5e2e9
File tree
2 files changed
+63
-122
lines changed- src
- backend/catalog
- include/catalog
2 files changed
+63
-122
lines changed0 commit comments
Comments
(0)