diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:50:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:50:04 +0000 |
commit | c83c22d05327805d4014088e70ae20d0284e7adf (patch) | |
tree | 10cbb0e0148c88194d692878c804180372a3f815 /src/backend/parser/parse_node.c | |
parent | 2e5a61f919f0f26045f0e4baefdd7ac704ba4910 (diff) | |
download | postgresql-c83c22d05327805d4014088e70ae20d0284e7adf.tar.gz postgresql-c83c22d05327805d4014088e70ae20d0284e7adf.zip |
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.
Diffstat (limited to 'src/backend/parser/parse_node.c')
0 files changed, 0 insertions, 0 deletions