code: func PgReadBinaryFile(db XODB, v0 string, v1 string, v2 int64, v3 int64, v4 string, v5 int64, v6 int64, v7 bool) ([]byte, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.pg_read_binary_file($1, $2, $3, $4, $5, $6, $7, $8)`
  
  	// run query
  	var ret []byte
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7).Scan(&ret)
  	if err != nil {
  		return nil, err
  	}
  
  	return ret, nil
  }
docs: // PgReadBinaryFile calls the stored procedure 'pg_catalog.pg_read_binary_file(text, text, bigint, bigint, text, bigint, bigint, boolean) bytea' on db.