From: Tom Hughes Date: Mon, 16 Jul 2018 13:36:38 +0000 (+0100) Subject: Replace PGconn with PG::Connection X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/40bc7fd7504ffd5f5b2f6805dc47136067f054ba Replace PGconn with PG::Connection --- 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