# Emit OID symbol
if (defined $bki_values{oid_symbol})
{
+ # OID symbols for builtin functions are handled automatically
+ # by utils/Gen_fmgrtab.pl
+ die sprintf
+ "custom OID symbols are not allowed for pg_proc entries: '%s'",
+ $bki_values{oid_symbol}
+ if $catname eq 'pg_proc';
+
printf $def "#define %s %s\n",
$bki_values{oid_symbol}, $bki_values{oid};
}
* seem prudent to show that in the catalog. So just overwrite it
* here.
*/
- relation->rd_amhandler = HEAP_TABLE_AM_HANDLER_OID;
+ relation->rd_amhandler = F_HEAP_TABLEAM_HANDLER;
}
else if (IsCatalogRelation(relation))
{
* Avoid doing a syscache lookup for catalog tables.
*/
Assert(relation->rd_rel->relam == HEAP_TABLE_AM_OID);
- relation->rd_amhandler = HEAP_TABLE_AM_HANDLER_OID;
+ relation->rd_amhandler = F_HEAP_TABLEAM_HANDLER;
}
else
{
prosrc => 'ftoi4' },
# Table access method handlers
-{ oid => '3', oid_symbol => 'HEAP_TABLE_AM_HANDLER_OID',
- descr => 'row-oriented heap table access method handler',
+{ oid => '3', descr => 'row-oriented heap table access method handler',
proname => 'heap_tableam_handler', provolatile => 'v',
prorettype => 'table_am_handler', proargtypes => 'internal',
prosrc => 'heap_tableam_handler' },