input: from typing import List
  
  def refresh_data(database_config: dict, table_name: str) -> None:
      """Refresh a given table of data in a PostgreSQL database every 5 minutes.
  
      >>> conf = {"host": "localhost", "database": "db", "user": "user", "password": "password"}
      >>> refresh_data(conf, "TableName")
      # This function will run indefinitely, refreshing the table every 5 minutes.
      """
output:     
      import psycopg2
      import time
  
      def refresh_table(config, table):
          conn = psycopg2.connect(**config)
          cur = conn.cursor()
          cur.execute(f"REFRESH MATERIALIZED VIEW {table};")
          conn.commit()
          cur.close()
          conn.close()
  
      while True:
          refresh_table(database_config, table_name)
          time.sleep(300)
  