diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:49:51 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:49:51 +0000 |
commit | ecb23d8b8bbffb976ef649a8926cb7ce2d1f19df (patch) | |
tree | 323edb15cea09ccade02ce3b0ba63e7e3ff1d588 /src/backend/access/gist/gist.c | |
parent | 7bd31c67150191e0261c96d8870587e5b294e50f (diff) | |
download | postgresql-ecb23d8b8bbffb976ef649a8926cb7ce2d1f19df.tar.gz postgresql-ecb23d8b8bbffb976ef649a8926cb7ce2d1f19df.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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions