Skip to content

Commit

Permalink
simple query protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 26, 2023
1 parent 01eb700 commit 5a5e211
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/PeerDB-io/peer-flow/model"
"github.com/PeerDB-io/peer-flow/model/qvalue"
"github.com/jackc/pglogrepl"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/jackc/pgx/v5/pgtype"
Expand Down Expand Up @@ -80,7 +81,7 @@ func getChildToParentRelIdMap(ctx context.Context, pool *pgxpool.Pool) (map[uint
WHERE parent.relking='p';
`

rows, err := pool.Query(ctx, query)
rows, err := pool.Query(ctx, query, pgx.QueryExecModeSimpleProtocol)
if err != nil {
return nil, fmt.Errorf("error querying for child to parent relid map: %w", err)
}
Expand Down

0 comments on commit 5a5e211

Please sign in to comment.