Skip to content

Commit

Permalink
Update methods referencing xlog to use newer wal versions
Browse files Browse the repository at this point in the history
These functions were renamed in PG 10

Fixes #16052
  • Loading branch information
carbonin committed Mar 12, 2019
1 parent cbd363d commit d0638ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extensions/ar_adapter/ar_dba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def spid
end

def xlog_location
select_value("SELECT pg_current_xlog_insert_location()")
select_value("SELECT pg_current_wal_insert_lsn()")
end

def xlog_location_diff(lsn1, lsn2)
select_value("SELECT pg_xlog_location_diff(#{quote(lsn1)}, #{quote(lsn2)})").to_i
select_value("SELECT pg_wal_lsn_diff(#{quote(lsn1)}, #{quote(lsn2)})").to_i
end

def client_connections
Expand Down

0 comments on commit d0638ea

Please sign in to comment.