Re: Logical replication - schema change not invalidating the relation cache

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Logical replication - schema change not invalidating the relation cache
Дата
Msg-id 2342961.1672868861@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Logical replication - schema change not invalidating the relation cache  (vignesh C <vignesh21@gmail.com>)
Ответы Re: Logical replication - schema change not invalidating the relation cache  (vignesh C <vignesh21@gmail.com>)
Список pgsql-hackers
vignesh C <vignesh21@gmail.com> writes:
> [ v3-0001-Fix-for-invalidating-logical-replication-relation.patch ]

(btw, please don't send multiple patch versions with the same number,
it's very confusing.)

I looked briefly at this patch.  I wonder why you wrote a whole new
callback function instead of just using rel_sync_cache_publication_cb
for this case too.

The bigger picture here though is that in examples such as the one
you gave at the top of the thread, it's not very clear to me that
there's *any* principled behavior.  If the connection between publisher
and subscriber tables is only the relation name, fine ... but exactly
which relation name applies?  If you've got a transaction that is both
inserting some data and renaming the table, it's really debatable which
insertions should be sent under which name(s).  So how much should we
actually care about such cases?  Do we really want to force a cache flush
any time somebody changes a (possibly unrelated) pg_namespace entry?
We could be giving up significant performance and not accomplishing much
except changing from one odd behavior to a different one.

            regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Rework of collation code, extensibility
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Is RecoveryConflictInterrupt() entirely safe in a signal handler?