E5F1 Rearrange dblink's dblink_build_sql_insert() and related routines to … · jandas/postgres@5ab2c66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ab2c66

Browse files
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 coding obtained and released lock several times per call. Aside from saving a not-insignificant number of cycles, this eliminates possible race conditions if someone tries to modify the relation's schema concurrently. Also centralize locking and permission-checking logic. Problem noted while investigating a trouble report from Robert Voinea --- his problem is still to be fixed, though.
1 parent 6742c60 commit 5ab2c66

File tree

1 file changed

+87
-122
lines changed

1 file changed

+87
-122
lines changed

0 commit comments

Comments
 (0)
0