| От | Alvaro Herrera |
|---|---|
| Тема | Re: hooks for supporting third party blobs? |
| Дата | |
| Msg-id | 20041207013057.GB25856@dcc.uchile.cl обсуждение исходный текст |
| Ответ на | hooks for supporting third party blobs? (Eric Davies <Eric@barrodale.com>) |
| Список | pgsql-general |
On Mon, Dec 06, 2004 at 05:11:21PM -0800, Eric Davies wrote: > Is anyone aware of any hooks to support schemes such as ours, or has solved > a similar problem? There's RegisterXactCallback() and RegisterSubXactCallback() functions that may be what you want. They are called whenever a transaction or subtransaction starts, commits, or aborts. You could probably keep a list of things modified during the transaction, so you can clean up at transaction end. (Much like the storage manager does: it only unlinks files for dropped tables at transaction commit.) Make sure to react appropiately at subtransaction abort ... -- Alvaro Herrera (<alvherre[@]dcc.uchile.cl>) "Si quieres ser creativo, aprende el arte de perder el tiempo"
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера