pgsql: Avoid syscache lookup while building a WAIT FOR tuple descriptor
Started by Alexander Korotkov8 months ago1 messagescommitters
Stepping through
Avoid syscache lookup while building a WAIT FOR tuple descriptor
Use TupleDescInitBuiltinEntry instead of TupleDescInitEntry when building
the result tuple descriptor for the WAIT FOR command. This avoids a syscache
access that could re-establish a catalog snapshot after we've explicitly
released all snapshots before the wait.
Discussion: /messages/by-id/CABPTF7U+SUnJX_woQYGe==R9Oz+-V6X0VO2stBLPGfJmH_LEhw@mail.gmail.com
Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/834038c1f8d52f51666c60ec774bbbf590f4e8c6
Modified Files
--------------
src/backend/commands/wait.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)