Skip to content

Commit

Permalink
Postgres source will produce its own schema; disable autogen (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuboxa authored Sep 7, 2024
1 parent 745bef3 commit 8518213
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"github.com/conduitio/conduit-commons/config"
"github.com/conduitio/conduit-commons/csync"
"github.com/conduitio/conduit-commons/lang"
"github.com/conduitio/conduit-commons/opencdc"
"github.com/conduitio/conduit-connector-postgres/source"
"github.com/conduitio/conduit-connector-postgres/source/cpool"
Expand All @@ -46,7 +47,13 @@ func NewSource() sdk.Source {
&Source{
tableKeys: make(map[string]string),
},
sdk.DefaultSourceMiddleware()...,
sdk.DefaultSourceMiddleware(
// disable schema extraction by default, postgres will build its own schema
sdk.SourceWithSchemaExtractionConfig{
PayloadEnabled: lang.Ptr(false),
KeyEnabled: lang.Ptr(false),
},
)...,
)
}

Expand Down

0 comments on commit 8518213

Please sign in to comment.