replicateQuery executes the query provided on the replica connection
(replicationConn *pgx.Conn, query string)
| 416 | |
| 417 | // replicateQuery executes the query provided on the replica connection |
| 418 | func (r *LogicalReplicator) replicateQuery(replicationConn *pgx.Conn, query string) error { |
| 419 | log.Printf("replicating query: %s", query) |
| 420 | _, err := replicationConn.Exec(context.Background(), query) |
| 421 | return err |
| 422 | } |
| 423 | |
| 424 | // beginReplication starts a new replication connection to the primary server and returns it. The LSN provided is the |
| 425 | // last one we have confirmed that we flushed to disk. |
no test coverage detected