Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
Chapter 47. Logical Decoding
Prev UpPart V. Server ProgrammingHome Next

Chapter 47. Logical Decoding

PostgreSQL provides infrastructure to stream the modifications performed via SQL to external consumers. This functionality can be used for a variety of purposes, including replication solutions and auditing.

Changes are sent out in streams identified by logical replication slots.

The format in which those changes are streamed is determined by the output plugin used. An example plugin is provided in the PostgreSQL distribution. Additional plugins can be written to extend the choice of available formats without modifying any core code. Every output plugin has access to each individual new row produced byINSERT and the new row version created byUPDATE. Availability of old row versions forUPDATE andDELETE depends on the configured replica identity (seeREPLICA IDENTITY).

Changes can be consumed either using the streaming replication protocol (seeSection 53.4 andSection 47.3), or by calling functions via SQL (seeSection 47.4). It is also possible to write additional methods of consuming the output of a replication slot without modifying core code (seeSection 47.7).


Prev Up Next
Chapter 46. Background Worker Processes Home 47.1. Logical Decoding Examples
pdfepub
Go to PostgreSQL 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp