code: def sql(
      state, host, sql,
      database=None,
      # Details for speaking to PostgreSQL via `psql` CLI
      postgresql_user=None, postgresql_password=None,
      postgresql_host=None, postgresql_port=None,
  ):
      '''
      Execute arbitrary SQL against PostgreSQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to execute against
      + postgresql_*: global module arguments, see above
      '''
  
      yield make_execute_psql_command(
          sql,
          database=database,
          user=postgresql_user,
          password=postgresql_password,
          host=postgresql_host,
          port=postgresql_port,
      f sql(
      state, host, sql,
      database=None,
      # Details for speaking to PostgreSQL via `psql` CLI
      postgresql_user=None, postgresql_password=None,
      postgresql_host=None, postgresql_port=None,
  ):
      '''
      Execute arbitrary SQL against PostgreSQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to execute against
      + postgresql_*: global module arguments, see above
      '''
  
      yield make_execute_psql_command(
          sql,
          database=database,
          user=postgresql_user,
          password=postgresql_password,
          host=postgresql_host,
          port=postgresql_port,
      )
docs: Execute arbitrary SQL against PostgreSQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to execute against
      + postgresql_*: global module arguments, see above