summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-10-30 10:08:53 +0000
committerPeter Eisentraut2023-10-30 10:08:53 +0000
commit0c60e8ba80e03491b028204a19a9dca6d216df91 (patch)
tree6089f48e06a5cc65b3fc1c8d7d0feef58edcb982
parent57891c256c345451b91ddb67a8e2a9c5eca9ae1c (diff)
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/[email protected]
-rw-r--r--src/backend/catalog/objectaddress.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c
index 715201f5a25..bb4efcad202 100644
--- a/src/backend/catalog/objectaddress.c
+++ b/src/backend/catalog/objectaddress.c
@@ -132,7 +132,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_ACCESS_METHOD,
true
},
{
@@ -174,7 +174,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_CAST,
false
},
{
@@ -384,7 +384,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_ROLE,
true
},
{
@@ -412,7 +412,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_RULE,
false
},
{
@@ -468,7 +468,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_TRANSFORM,
false
},
{
@@ -482,7 +482,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_TRIGGER,
false
},
{
@@ -496,7 +496,7 @@ static const ObjectPropertyType ObjectProperty[] =
InvalidAttrNumber,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_POLICY,
false
},
{
@@ -552,7 +552,7 @@ static const ObjectPropertyType ObjectProperty[] =
Anum_pg_ts_parser_prsnamespace,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_TSPARSER,
true
},
{
@@ -566,7 +566,7 @@ static const ObjectPropertyType ObjectProperty[] =
Anum_pg_ts_template_tmplnamespace,
InvalidAttrNumber,
InvalidAttrNumber,
- -1,
+ OBJECT_TSTEMPLATE,
true,
},
{