![](/img/trans.png)
[英]PostgreSQL 13.3 Logical Replication doesn't create the replication slot in the master
[英]ERROR: invalid logical replication message type “T”
我從 Postgres 10.3 邏輯復制中遇到錯誤。
設置
日志
2021-03-22 13:06:57.332 IST @ 25929 LOG: checkpoints are occurring too frequently (22 seconds apart)
2021-03-22 13:06:57.332 IST @ 25929 HINT: Consider increasing the configuration parameter "max_wal_size".
2021-03-22 14:34:21.263 IST @ 21461 ERROR: invalid logical replication message type "T"
2021-03-22 14:34:21.315 IST @ 3184 LOG: logical replication apply worker for subscription "elk_subscription_133" has started
2021-03-22 14:34:21.367 IST @ 3184 ERROR: invalid logical replication message type "T"
2021-03-22 14:34:21.369 IST @ 25921 LOG: worker process: logical replication worker for subscription 84627 (PID 3184) exited with exit code 1
2021-03-22 14:34:22.259 IST @ 25921 LOG: worker process: logical replication worker for subscription 84627 (PID 21461) exited with exit code 1
2021-03-22 14:34:27.281 IST @ 3187 LOG: logical replication apply worker for subscription "elk_subscription_133" has started
2021-03-22 14:34:27.311 IST @ 3187 ERROR: invalid logical replication message type "T"
2021-03-22 14:34:27.313 IST @ 25921 LOG: worker process: logical replication worker for subscription 84627 (PID 3187) exited with exit code 1
2021-03-22 14:34:32.336 IST @ 3188 LOG: logical replication apply worker for subscription "elk_subscription_133" has started
2021-03-22 14:34:32.362 IST @ 3188 ERROR: invalid logical replication message type "T"
該文檔描述了消息T
:
截短
字節 1('T')
將消息標識為截斷消息。
v11 中添加了對TRUNCATE
的支持,因此主服務器必須是 v11 或更高版本。
您必須從發布中刪除表,刷新訂閱,手動截斷表,將其添加到發布並再次刷新訂閱。
避免TRUNCATE
並更改發布:
ALTER PUBLICATION name SET (publish = 'insert, update, delete');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.