pgsql: Rearrange dblink's dblink_build_sql_insert() and related routines

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Rearrange dblink's dblink_build_sql_insert() and related routines
Дата
Msg-id 20100614205004.414827541D5@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/contrib/dblink:
        dblink.c (r1.38.4.7 -> r1.38.4.8)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/dblink/dblink.c?r1=1.38.4.7&r2=1.38.4.8)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Rearrange dblink's dblink_build_sql_insert() and related routines
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Rearrange dblink's dblink_build_sql_insert() and related routines