aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-01-15 10:30:19 +0900
committerFujii Masao <fujii@postgresql.org>2021-01-15 10:30:19 +0900
commit5e5f4fcd89c082bba0239e8db1552834b4905c34 (patch)
treedc5dacf54619a1d98c032ae41b501d784392c1bb /src/backend/commands/async.c
parent8e396a773b80c72e5d5a0ca9755dffe043c97a05 (diff)
downloadpostgresql-5e5f4fcd89c082bba0239e8db1552834b4905c34.tar.gz
postgresql-5e5f4fcd89c082bba0239e8db1552834b4905c34.zip
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
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions