Re: nested xacts and phantom Xids

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: nested xacts and phantom Xids
Дата
Msg-id 20040624235327.GD8190@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: nested xacts and phantom Xids  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: nested xacts and phantom Xids  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-patches
On Sun, Jun 20, 2004 at 08:49:22PM -0400, Tom Lane wrote:

Regarding GUC, a WIP report:

> Given patches for inval.c and guc.c, I would say that the patch is
> functionally close enough to done that we could commit to including
> it in 7.5 --- the other stuff could be wrapped up post-feature-freeze.

I figured I could save the values whenever they are going to change, and
restore them if the subtransaction aborts.  This seems to work fine
(lightly tested).

I still have to figure out how to handle allocation for string vars, but
I thought I'd post the patch for others to see.  Please let me know if
it's too ugly.  (This patch misses the pieces in xact.c and xact.h but
I'm sure the concept is clear.)

I'll post a full patch once the missing deferred trigger stuff works.
With the patches I posted to inval.c I think this fulfills the
requirements, barring the performance issues raised.

Comments?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No single strategy is always right (Unless the boss says so)"
(Larry Wall)

Вложения

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

Предыдущее
От: Dennis Bjorklund
Дата:
Сообщение: Add argument name to CREATE FUNCTION documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add argument name to CREATE FUNCTION documentation