PostgreSQL equivalent of Oplog Tailing in MongoDB

别来无恙 提交于 2019-12-05 06:46:16

In PostgreSQL 9.4 and newer you can use the test_decoding plugin via pg_recvlogical to stream changes from a replication slot.

In 9.3 and newer pg_xlogdump can decode the transaction log segments, but that means you have to capture and dump each segment, and it really requires WAL archiving to be enabled in order to be practical.

You should also look at:

  • The pg_stat_statements extension
  • The built-in pg_stat_activity view
  • The built-in pg_stat_.. views like pg_stat_user_indexes, etc.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!