Detecting schema changes via WAL logs

Поиск
Список
Период
Сортировка
От Cal Mitchell
Тема Detecting schema changes via WAL logs
Дата
Msg-id C90BBBF0-F41A-43D0-8988-E4964B31D75F@sqlpipe.com
обсуждение исходный текст
Ответы Re: Detecting schema changes via WAL logs  (Tomas Pospisek <tpo2@sourcepole.ch>)
Список pgsql-general
Hello everyone,

I’m building an open-source data integration tool (SQLpipe) and am now trying to incorporate CDC into the product.

Is it possible to detect when schema changes happen via the WAL? The WAL doesn’t have to tell me what was changed, it just needs to tell me when something changed.

For example, anytime I run create table or some other DDL command, there is a begin and commit message in the log, with nothing in between. If there aren’t any other operations that create such “empty” logs, it seems possible to just re-scan the tables that are being synced for schema changes whenever one of these logs is encountered.

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Strange results when casting string to double
Следующее
От: Carsten Klein
Дата:
Сообщение: Re: Strange results when casting string to double