Re: 8.3.7, `cache lookup failed` for a table

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: 8.3.7, `cache lookup failed` for a table
Дата
Msg-id 20d568f3f2f6beeab00337499d9df567@biglumber.com
обсуждение исходный текст
Ответ на Re: 8.3.7, 'cache lookup failed' for a table  (Glyn Astill <glynastill@yahoo.co.uk>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


>> You think it is because slony is poking around pg_catalog.
>> schema, and it shouldn't , basically ?

> No, Slony 1.2.x pokes around in pg_catalog because in versions
> of postgres prior to 8.3 (which 1.2.x has to support) there was
> no built in way to disable the triggers.

This is not technically true. We had the same problem when
designing Bucardo. The canonical (and completely safe) way
is to do ALTER TABLE DISABLE TRIGGER. However, the locking
involved in such a call is too expensive for almost all
uses of a replication system, so both Slony and Bucardo made
the call to muck with the system catalogs instead. This does
lead to the occassional "OID not found" message, especially
on very busy systems.

It should also be noted that Bucardo and Slony disable rules
as well as triggers - something that cannot be done at the
SQL level. So the catalog tweaks are really necessary after
all in order to disable triggers *and* rules.

As pointed out, this is now completely solved with the
session_replication_role setting, fully supported by Bucardo,
and by Slony in the 2.x branch.

(The above glosses over a few details between the systems, but
it's mostly a moot point now as pre-8.3 systems are becoming
relatively rare)

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201005121002
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEUEAREDAAYFAkvqtbQACgkQvJuQZxSWSsjnqQCcDOTVMpCFowgLCR8EVG+V0LsD
pykAmNr6YTbtBRxHXB55ZXErevG07Js=
=LtbH
-----END PGP SIGNATURE-----



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

Предыдущее
От: John Gage
Дата:
Сообщение: Re: Documentation availability as a single page of text
Следующее
От: Venkata Subrahmanyam Gurram
Дата:
Сообщение: Server tries to connect without ssl support