You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
### Changed
9
9
10
10
- The `pg_stream` input has been renamed to `postgres_cdc`. The old name will continue to function as an alias. (@rockwotj)
11
+
- The `postgres_cdc` input no longer emits `mode` metadata and instead snapshot reads set `operation` metadata to be `read` instead of `insert`. (@rockwotj)
Copy file name to clipboardexpand all lines: docs/modules/components/pages/inputs/pg_stream.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -106,9 +106,9 @@ Additionally, if `stream_snapshot` is set to true, then the existing data in the
106
106
== Metadata
107
107
108
108
This input adds the following metadata fields to each message:
109
-
- mode (Either "streaming" or "snapshot" indicating whether the message is part of a streaming operation or snapshot processing)
110
109
- table (Name of the table that the message originated from)
111
-
- operation (Type of operation that generated the message: "insert", "update", or "delete". This will also be "begin" and "commit" if `include_transaction_markers` is enabled)
110
+
- operation (Type of operation that generated the message: "read", "insert", "update", or "delete". "read" is from messages that are read in the initial snapshot phase. This will also be "begin" and "commit" if `include_transaction_markers` is enabled)
Copy file name to clipboardexpand all lines: docs/modules/components/pages/inputs/postgres_cdc.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -101,9 +101,9 @@ Additionally, if `stream_snapshot` is set to true, then the existing data in the
101
101
== Metadata
102
102
103
103
This input adds the following metadata fields to each message:
104
-
- mode (Either "streaming" or "snapshot" indicating whether the message is part of a streaming operation or snapshot processing)
105
104
- table (Name of the table that the message originated from)
106
-
- operation (Type of operation that generated the message: "insert", "update", or "delete". This will also be "begin" and "commit" if `include_transaction_markers` is enabled)
105
+
- operation (Type of operation that generated the message: "read", "insert", "update", or "delete". "read" is from messages that are read in the initial snapshot phase. This will also be "begin" and "commit" if `include_transaction_markers` is enabled)
Copy file name to clipboardexpand all lines: internal/impl/postgresql/input_pg_stream.go
+3-4
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,9 @@ Additionally, if ` + "`" + fieldStreamSnapshot + "`" + ` is set to true, then th
61
61
== Metadata
62
62
63
63
This input adds the following metadata fields to each message:
64
-
- mode (Either "streaming" or "snapshot" indicating whether the message is part of a streaming operation or snapshot processing)
65
64
- table (Name of the table that the message originated from)
66
-
- operation (Type of operation that generated the message: "insert", "update", or "delete". This will also be "begin" and "commit" if `+"`"+fieldIncludeTxnMarkers+"`"+` is enabled)
65
+
- operation (Type of operation that generated the message: "read", "insert", "update", or "delete". "read" is from messages that are read in the initial snapshot phase. This will also be "begin" and "commit" if `+"`"+fieldIncludeTxnMarkers+"`"+` is enabled)
66
+
- lsn (the log sequence number in postgres)
67
67
`).
68
68
Field(service.NewStringField(fieldDSN).
69
69
Description("The Data Source Name for the PostgreSQL database in the form of `postgres://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]`. Please note that Postgres enforces SSL by default, you can override this with the parameter `sslmode=disable` if required.").
@@ -259,7 +259,7 @@ func newPgStreamInput(conf *service.ParsedConfig, mgr *service.Resources) (s ser
0 commit comments