Skip to content

Commit

Permalink
Fix for pg_transform handling.
Browse files Browse the repository at this point in the history
pg_transform.trffromsql and pg_transform.trftosql columns are defined
as type regproc in the pg_transform catalog table.  This type needs to
be cast to pg_catalog.oid in order for check_proc_oid to work
properly.

Rushabh Lathia
  • Loading branch information
robertmhaas committed Jan 13, 2022
1 parent 240c44a commit 1dff950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions definitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,8 @@ struct pg_catalog_column pg_transform_column[] =
{"oid", NULL, 90500, 0, false, true, true},
{"trftype", NULL, 90500, 0, false, false, false, &check_type_oid},
{"trflang", NULL, 90500, 0, false, false, false, &check_language_oid},
{"trffromsql", NULL, 90500, 0, false, false, false, &check_proc_oid},
{"trftosql", NULL, 90500, 0, false, false, false, &check_proc_oid},
{"trffromsql", "pg_catalog.oid", 90500, 0, false, false, false, &check_proc_oid},
{"trftosql", "pg_catalog.oid", 90500, 0, false, false, false, &check_proc_oid},
{NULL}
};

Expand Down

0 comments on commit 1dff950

Please sign in to comment.