Skip to content

Commit af51fa1

Browse files
peterepull[bot]
authored andcommitted
Fill in more of ObjectProperty
Fill in .objtype field where an appropriate value exists. These cases are currently not used (see also comments at get_object_type()), but we might as well fill in what's possible in case additional uses arise. Discussion: https://www.postgresql.org/message-id/flat/75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org
1 parent d092182 commit af51fa1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static const ObjectPropertyType ObjectProperty[] =
132132
InvalidAttrNumber,
133133
InvalidAttrNumber,
134134
InvalidAttrNumber,
135-
-1,
135+
OBJECT_ACCESS_METHOD,
136136
true
137137
},
138138
{
@@ -174,7 +174,7 @@ static const ObjectPropertyType ObjectProperty[] =
174174
InvalidAttrNumber,
175175
InvalidAttrNumber,
176176
InvalidAttrNumber,
177-
-1,
177+
OBJECT_CAST,
178178
false
179179
},
180180
{
@@ -384,7 +384,7 @@ static const ObjectPropertyType ObjectProperty[] =
384384
InvalidAttrNumber,
385385
InvalidAttrNumber,
386386
InvalidAttrNumber,
387-
-1,
387+
OBJECT_ROLE,
388388
true
389389
},
390390
{
@@ -412,7 +412,7 @@ static const ObjectPropertyType ObjectProperty[] =
412412
InvalidAttrNumber,
413413
InvalidAttrNumber,
414414
InvalidAttrNumber,
415-
-1,
415+
OBJECT_RULE,
416416
false
417417
},
418418
{
@@ -468,7 +468,7 @@ static const ObjectPropertyType ObjectProperty[] =
468468
InvalidAttrNumber,
469469
InvalidAttrNumber,
470470
InvalidAttrNumber,
471-
-1,
471+
OBJECT_TRANSFORM,
472472
false
473473
},
474474
{
@@ -482,7 +482,7 @@ static const ObjectPropertyType ObjectProperty[] =
482482
InvalidAttrNumber,
483483
InvalidAttrNumber,
484484
InvalidAttrNumber,
485-
-1,
485+
OBJECT_TRIGGER,
486486
false
487487
},
488488
{
@@ -496,7 +496,7 @@ static const ObjectPropertyType ObjectProperty[] =
496496
InvalidAttrNumber,
497497
InvalidAttrNumber,
498498
InvalidAttrNumber,
499-
-1,
499+
OBJECT_POLICY,
500500
false
501501
},
502502
{
@@ -552,7 +552,7 @@ static const ObjectPropertyType ObjectProperty[] =
552552
Anum_pg_ts_parser_prsnamespace,
553553
InvalidAttrNumber,
554554
InvalidAttrNumber,
555-
-1,
555+
OBJECT_TSPARSER,
556556
true
557557
},
558558
{
@@ -566,7 +566,7 @@ static const ObjectPropertyType ObjectProperty[] =
566566
Anum_pg_ts_template_tmplnamespace,
567567
InvalidAttrNumber,
568568
InvalidAttrNumber,
569-
-1,
569+
OBJECT_TSTEMPLATE,
570570
true,
571571
},
572572
{

0 commit comments

Comments
 (0)