1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Remove GetUserMappingId() and GetUserMappingById().

These functions were added in commits fbe5a3fb7 and a104a017f,
but commit 45639a052 removed their only callers.  Put the related
code in foreign.c back to the way it was in 9.5, to avoid pointless
cross-version diffs.

Etsuro Fujita

Patch: <d674a3f1-6b63-519c-ef3f-f3188ed6a178@lab.ntt.co.jp>
This commit is contained in:
Tom Lane
2016-07-22 11:32:23 -04:00
parent d70d119151
commit 13bf801a25
3 changed files with 17 additions and 121 deletions

View File

@ -1323,20 +1323,6 @@ GetForeignTable(Oid relid);
<para>
<programlisting>
UserMapping *
GetUserMappingById(Oid umid);
</programlisting>
This function returns the <structname>UserMapping</structname> object for
the given user mapping OID. The OID of a user mapping for a foreign scan
is available in the <structname>RelOptInfo</structname>.
If there is no mapping for the OID, this function will throw an error.
A <structname>UserMapping</structname> object contains properties of the
user mapping (see <filename>foreign/foreign.h</filename> for details).
</para>
<para>
<programlisting>
List *
GetForeignColumnOptions(Oid relid, AttrNumber attnum);
</programlisting>