postgresql/contrib/postgres_fdw
Fujii Masao 5e5f4fcd89 postgres_fdw: Save foreign server OID in connection cache entry.
The foreign server OID stored in the connection cache entry is used as
a lookup key to directly get the server name.

Previously since the connection cache entry did not have the server OID,
postgres_fdw had to get the server OID at first from user mapping before
getting the server name. So if the corresponding user mapping was dropped,
postgres_fdw could raise the error "cache lookup failed for user mapping"
while looking up user mapping and fail to get the server name even though
the server had not been dropped yet.

Author: Bharath Rupireddy
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CALj2ACVRZPUB7ZwqLn-6DY8C_UmPs6084gSpHA92YBv++1AJXA@mail.gmail.com
2021-01-15 10:30:19 +09:00
..
expected postgres_fdw: Fix connection leak. 2020-12-28 19:56:13 +09:00
sql postgres_fdw: Fix connection leak. 2020-12-28 19:56:13 +09:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
connection.c postgres_fdw: Save foreign server OID in connection cache entry. 2021-01-15 10:30:19 +09:00
deparse.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
option.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00
shippable.c Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00