From 40bc7fd7504ffd5f5b2f6805dc47136067f054ba Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 16 Jul 2018 14:36:38 +0100 Subject: [PATCH] Replace PGconn with PG::Connection --- .../planet/files/default/replication-bin/replicate-changesets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index fac548bd5..363d6040a 100755 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -143,7 +143,7 @@ class Replicator def initialize(config) @config = YAML.safe_load(File.read(config)) @state = YAML.safe_load(File.read(@config["state_file"]), [Time]) - @conn = PGconn.connect(@config["db"]) + @conn = PG::Connection.connect(@config["db"]) # get current time from the database rather than the current system @now = @conn.exec("select now() as now").map { |row| Time.parse(row["now"]) }[0] end -- 2.39.5