Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef5e2e9

Browse files
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.com
1 parent743112a commitef5e2e9

File tree

2 files changed

+63
-122
lines changed

2 files changed

+63
-122
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp