Skip to content

Commit

Permalink
pgcdc: update examples with quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwotj committed Dec 13, 2024
1 parent 20e90bf commit 9b77304
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
9 changes: 5 additions & 4 deletions docs/modules/components/pages/inputs/pg_stream.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ The PostgreSQL schema from which to replicate data.
# Examples
schema: public
schema: '"MyCaseSensitiveSchemaNeedingQuotes"'
```
=== `tables`
Expand All @@ -206,10 +208,9 @@ A list of table names to include in the logical replication. Each table should b
```yml
# Examples
tables: |2-
- my_table
- my_table_2
tables:
- my_table_1
- '"MyCaseSensitiveTableNeedingQuotes"'
```
=== `checkpoint_limit`
Expand Down
9 changes: 5 additions & 4 deletions docs/modules/components/pages/inputs/postgres_cdc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ The PostgreSQL schema from which to replicate data.
# Examples
schema: public
schema: '"MyCaseSensitiveSchemaNeedingQuotes"'
```
=== `tables`
Expand All @@ -201,10 +203,9 @@ A list of table names to include in the logical replication. Each table should b
```yml
# Examples
tables: |2-
- my_table
- my_table_2
tables:
- my_table_1
- '"MyCaseSensitiveTableNeedingQuotes"'
```
=== `checkpoint_limit`
Expand Down
8 changes: 3 additions & 5 deletions internal/impl/postgresql/input_pg_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ This input adds the following metadata fields to each message:
Default(0)).
Field(service.NewStringField(fieldSchema).
Description("The PostgreSQL schema from which to replicate data.").
Example("public")).
Examples("public", `"MyCaseSensitiveSchemaNeedingQuotes"`),
).
Field(service.NewStringListField(fieldTables).
Description("A list of table names to include in the logical replication. Each table should be specified as a separate item.").
Example(`
- my_table
- my_table_2
`)).
Example([]string{"my_table_1", `"MyCaseSensitiveTableNeedingQuotes"`})).
Field(service.NewIntField(fieldCheckpointLimit).
Description("The maximum number of messages that can be processed at a given time. Increasing this limit enables parallel processing and batching at the output level. Any given LSN will not be acknowledged unless all messages under that offset are delivered in order to preserve at least once delivery guarantees.").
Default(1024)).
Expand Down

0 comments on commit 9b77304

Please sign in to comment.