Skip to content

Commit

Permalink
Minor source cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alvherre committed Mar 26, 2020
1 parent a4c76a7 commit 1aea9f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pglogical_create_subscriber.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ main(int argc, char **argv)
print_msg(VERBOSITY_VERBOSE,
_("Removing old pglogical configuration ...\n"));


for (dbnum = 0; dbnum < n_databases; dbnum++)
{
char *db = database_list[dbnum];
Expand Down Expand Up @@ -968,7 +967,7 @@ remove_unwanted_data(PGconn *conn)
PGresult *res;

/*
* Remove replication identifiers (9.4 will get the removed by dropping
* Remove replication identifiers (9.4 will get them removed by dropping
* the extension later as we emulate them there).
*/
if (PQserverVersion(conn) >= 90500)
Expand Down Expand Up @@ -1088,10 +1087,7 @@ pglogical_subscribe(PGconn *conn, char *subscriber_name, char *subscriber_dsn,
PQExpBufferData repsets;
PGresult *res;

PQescapeLiteral(conn, subscriber_dsn, strlen(subscriber_dsn)),

initPQExpBuffer(&query);

printfPQExpBuffer(&query,
"SELECT pglogical.create_node(node_name := %s, dsn := %s);",
PQescapeLiteral(conn, subscriber_name, strlen(subscriber_name)),
Expand Down

0 comments on commit 1aea9f8

Please sign in to comment.