From ecd3522d57da1f78d46679e898d8f296ad2b0ea1 Mon Sep 17 00:00:00 2001 From: Kevin Biju Date: Sat, 21 Oct 2023 23:55:37 +0530 Subject: [PATCH] reintroduce not erroring out when no primary keys && isFullReplica --- flow/connectors/postgres/postgres.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flow/connectors/postgres/postgres.go b/flow/connectors/postgres/postgres.go index a4df6246d3..c550ae1445 100644 --- a/flow/connectors/postgres/postgres.go +++ b/flow/connectors/postgres/postgres.go @@ -602,7 +602,9 @@ func (c *PostgresConnector) getTableSchemaForTable( pKeyCols, err := c.getPrimaryKeyColumns(schemaTable) if err != nil { - return nil, fmt.Errorf("error getting primary key column for table %s: %w", schemaTable, err) + if !isFullReplica { + return nil, fmt.Errorf("error getting primary key column for table %s: %w", schemaTable, err) + } } res := &protos.TableSchema{