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

Commitd7ceb41

Browse files
committed
Correct ObjectProperty entry for transforms
There was some confusion in the ObjectProperty entry for transforms.Some fields had values that were apparently meant for a differentfield. Also, some fields were not assigned, which is okay for mostfields, but not for all. In particular, for .oid_catcache_id,.name_catcache_id, and .objtype, zero is a valid value, so we need touse -1 if not applicable. It has apparently been like that from thevery beginning (commitcac7658). The faulty values were notactually reachable, so it's not a big problem in practice, but weshould make it correct.Discussion:https://www.postgresql.org/message-id/flat/75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org
1 parentf94dec7 commitd7ceb41

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/backend/catalog/objectaddress.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,14 @@ static const ObjectPropertyType ObjectProperty[] =
462462
TransformRelationId,
463463
TransformOidIndexId,
464464
TRFOID,
465+
-1,
466+
Anum_pg_transform_oid,
467+
InvalidAttrNumber,
468+
InvalidAttrNumber,
465469
InvalidAttrNumber,
466-
Anum_pg_transform_oid
470+
InvalidAttrNumber,
471+
-1,
472+
false
467473
},
468474
{
469475
"trigger",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp