Re: [Slony1-general] Re: dangling lock information?

Поиск
Список
Период
Сортировка
От Chris Browne
Тема Re: [Slony1-general] Re: dangling lock information?
Дата
Msg-id 60ek8b74rl.fsf@dba2.int.libertyrms.com
обсуждение исходный текст
Ответ на Re: [Slony1-general] Re: dangling lock information?  ("David Parker" <dparker@tazznetworks.com>)
Ответы Re: [Slony1-general] Re: dangling lock information?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [Slony1-general] Re: dangling lock information?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
dparker@tazznetworks.com ("David Parker") writes:
> The slony log trigger saves execution plans, so any given connection
> that has been used with a slony schema installed will have cached OIDs
> referring to the sl_log_1 table. When you drop the schema, those OIDs
> obviously go away. When you re-create the schema, and try to use the old
> connection, it still has the old plan cached in it, so the OIDs in the
> plan are out of sync with what actually exists in the database.
>
> This is the behavior I've observed in our environment, anyway. The
> problem always shows up when slony is RE-installed under an outstanding
> connection.

I have observed much the same behaviour...

It would be really useful to have some guidance as to how to resolve
this.

What is needed is to invalidate the cached execution plans.

Unfortunately, it's not at all obvious how to accomplish that :-(.

Alas, any time I touch the SPI code in other than relatively trivial
ways, it falls over and croaks :-(.
-- 
let name="cbbrowne" and tld="cbbrowne.com" in name ^ "@" ^ tld;;
http://cbbrowne.com/info/linuxdistributions.html
One good turn gets most of the blankets. 


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

Предыдущее
От: "Luke Lonergan"
Дата:
Сообщение: Re: SHMMAX seems entirely broken in OS X 10.4.2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.1beta, SunOS and shmget