forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6bbaa31
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 parentcbb0dcf commit6bbaa31
1 file changed
+83
-126
lines changed0 commit comments
Comments
(0)