code: func PgTsConfigByOid(db XODB, oid pgtypes.Oid) (*PgTsConfig, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, cfgname, cfgnamespace, cfgowner, cfgparser ` +
  		`FROM pg_catalog.pg_ts_config ` +
  		`WHERE oid = $1`
  
  	// run query
  	XOLog(sqlstr, oid)
  	ptc := PgTsConfig{}
  
  	err = db.QueryRow(sqlstr, oid).Scan(&ptc.Tableoid, &ptc.Cmax, &ptc.Xmax, &ptc.Cmin, &ptc.Xmin, &ptc.Oid, &ptc.Ctid, &ptc.Cfgname, &ptc.Cfgnamespace, &ptc.Cfgowner, &ptc.Cfgparser)
  	if err != nil {
  		return nil, err
  	}
  
  	return &ptc, nil
  }
docs: // PgTsConfigByOid retrieves a row from 'pg_catalog.pg_ts_config' as a PgTsConfig.
  //
  // Generated from index 'pg_ts_config_oid_index'.