pgsql: When in transaction-aborted state, reject Bind message for

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: When in transaction-aborted state, reject Bind message for
Дата
Msg-id 20051110003200.5FC5DDA7EB@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
When in transaction-aborted state, reject Bind message for portals containing
anything but transaction-exiting commands (ROLLBACK etc).  We already rejected
Parse and Execute in such cases, so there seems little point in allowing Bind.
This prevents at least an Assert failure, and probably worse things, since
there's a lot of infrastructure that doesn't work when not in a live
transaction.  We can also simplify the Bind logic a bit by rejecting messages
with a nonzero number of parameters, instead of the former kluge to silently
substitute NULL for each parameter.  Per bug #2033 from Joel Stevenson.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/tcop:
        postgres.c (r1.375.2.3 -> r1.375.2.4)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tcop/postgres.c.diff?r1=1.375.2.3&r2=1.375.2.4)

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

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: When in transaction-aborted state, reject Bind message for
Следующее
От: chriskl@pgfoundry.org (User Chriskl)
Дата:
Сообщение: dbsamples - dbsamples: Imported Sources