replicator/lib/ruby/pg-wal-plugin.rb
# Uninstall infrastructure to update PostgreSQL configuration files. 
Uninstall infrastructure to update PostgreSQL configuration files.
Uninstall infrastructure to update PostgreSQL configuration files .
def plugin_uninstall
    log("Performing uninstall")
    role = @config.getProperty("postgresql.role")
    if role == "master"
      create_tungsten_db(false) 
    end
    if File.exists?(@pg_wal_conf)
      Dir.foreach(@pg_wal_conf) { | file |
        fpath = @pg_wal_conf + "/" + file
        if File.file?(fpath)
          File.delete(fpath)
          log("Deleted file: " + fpath)
        end
      }
    end
  end
def plugin_uninstall log ( "Performing uninstall" ) role = @config . getProperty ( "postgresql.role" ) if role == "master" create_tungsten_db ( false ) end if File . exists? ( @pg_wal_conf ) Dir . foreach ( @pg_wal_conf ) { | file | fpath = @pg_wal_conf + "/" + file if File . file? ( fpath ) File . delete ( fpath ) log ( "Deleted file: " + fpath ) end } end end
Uninstall infrastructure to update PostgreSQL configuration files.
Uninstall infrastructure to update PostgreSQL configuration files .
# Clean all files in pg-wal configuration directory.  # Delete the 'tungsten' database.