code: func PgTsParserByOid(db XODB, oid pgtypes.Oid) (*PgTsParser, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, prsname, prsnamespace, prsstart, prstoken, prsend, prsheadline, prslextype ` +
  		`FROM pg_catalog.pg_ts_parser ` +
  		`WHERE oid = $1`
  
  	// run query
  	XOLog(sqlstr, oid)
  	ptp := PgTsParser{}
  
  	err = db.QueryRow(sqlstr, oid).Scan(&ptp.Tableoid, &ptp.Cmax, &ptp.Xmax, &ptp.Cmin, &ptp.Xmin, &ptp.Oid, &ptp.Ctid, &ptp.Prsname, &ptp.Prsnamespace, &ptp.Prsstart, &ptp.Prstoken, &ptp.Prsend, &ptp.Prsheadline, &ptp.Prslextype)
  	if err != nil {
  		return nil, err
  	}
  
  	return &ptp, nil
  }
docs: // PgTsParserByOid retrieves a row from 'pg_catalog.pg_ts_parser' as a PgTsParser.
  //
  // Generated from index 'pg_ts_parser_oid_index'.