diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:49:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-14 20:49:39 +0000 |
commit | a68404d436747ecc2a9ac5ef10d61d50c3ee10eb (patch) | |
tree | abefa5e95316f42b3221edb3ac527e167aa6f056 /src/backend/parser/parse_expr.c | |
parent | 3522f1e6575a162082d202c4ad6e2ee4d1db423a (diff) | |
download | postgresql-a68404d436747ecc2a9ac5ef10d61d50c3ee10eb.tar.gz postgresql-a68404d436747ecc2a9ac5ef10d61d50c3ee10eb.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_expr.c')
0 files changed, 0 insertions, 0 deletions