mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Support comments on FOREIGN DATA WRAPPER and SERVER objects.
This mostly involves making it work with the objectaddress.c framework, which does most of the heavy lifting. In that vein, change GetForeignDataWrapperOidByName to get_foreign_data_wrapper_oid and GetForeignServerOidByName to get_foreign_server_oid, to match the pattern we use for other object types. Robert Haas and Shigeru Hanada
This commit is contained in:
@ -3162,7 +3162,7 @@ convert_foreign_data_wrapper_name(text *fdwname)
|
||||
{
|
||||
char *fdwstr = text_to_cstring(fdwname);
|
||||
|
||||
return GetForeignDataWrapperOidByName(fdwstr, false);
|
||||
return get_foreign_data_wrapper_oid(fdwstr, false);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -3928,7 +3928,7 @@ convert_server_name(text *servername)
|
||||
{
|
||||
char *serverstr = text_to_cstring(servername);
|
||||
|
||||
return GetForeignServerOidByName(serverstr, false);
|
||||
return get_foreign_server_oid(serverstr, false);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user