- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit5ab2c66
committed
Rearrange dblink's dblink_build_sql_insert() and related routines to open and
lock the target relation just once per SQL function call. The original codingobtained and released lock several times per call. Aside from saving anot-insignificant number of cycles, this eliminates possible race conditionsif someone tries to modify the relation's schema concurrently. Alsocentralize locking and permission-checking logic.Problem noted while investigating a trouble report from Robert Voinea --- hisproblem is still to be fixed, though.1 parent6742c60 commit5ab2c66
1 file changed
+87
-122
lines changed0 commit comments
Comments
(0)