1
0
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:
Robert Haas
2011-04-01 11:28:28 -04:00
parent 7fcc75dd26
commit 50533a6dc5
11 changed files with 124 additions and 55 deletions

View File

@ -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);
}
/*