v3-0001-Fill-in-more-of-ObjectProperty.patch
text/plain
Filename: v3-0001-Fill-in-more-of-ObjectProperty.patch
Type: text/plain
Part: 0
Patch
Format: format-patch
Series: patch v3-0001
Subject: Fill in more of ObjectProperty
| File | + | − |
|---|---|---|
| src/backend/catalog/objectaddress.c | 9 | 9 |
From 399b6add1e775083317b60f51dfd7e6c41209421 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Mon, 3 Jul 2023 07:39:25 +0200
Subject: [PATCH v3 1/3] 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
---
src/backend/catalog/objectaddress.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c
index 715201f5a2..bb4efcad20 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,
},
{
--
2.41.0