code: func PgReplicationOriginSessionProgress(db XODB, v0 bool) (pgtypes.PgLsn, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.pg_replication_origin_session_progress($1)`
  
  	// run query
  	var ret pgtypes.PgLsn
  	XOLog(sqlstr, v0)
  	err = db.QueryRow(sqlstr, v0).Scan(&ret)
  	if err != nil {
  		return pgtypes.PgLsn{}, err
  	}
  
  	return ret, nil
  }
docs: // PgReplicationOriginSessionProgress calls the stored procedure 'pg_catalog.pg_replication_origin_session_progress(boolean) pg_lsn' on db.