parameters: (self)
return_statement: return ret
docstring: @brief Get the list of changed/removed UDOC OIDs for comparison
function: def get_udoc_oids(self):
          """
          @brief Get the list of changed/removed UDOC OIDs for comparison
          """
          ret = []
  
          changed_opcs = set()
          for opc, li in self._udoc.items():
              for e in li:
                  changed_opcs.add((opc, e['index']))
          gte_gpdb5 = (self._portid == 'greenplum' and
                       is_rev_gte(get_rev_num(self._dbver), get_rev_num('5.0')))
          if (self._portid == 'postgres' or gte_gpdb5):
              method_col = 'opcmethod'
          else:
              method_col = 'opcamid'
          rows = self._run_sql("""
              SELECT
                  oc.oid, opcname, amname AS index
              FROM
                  pg_opclass AS oc, pg_am as am
              WHERE
                  oc.opcnamespace = {madlib_schema_oid} AND
                  oc.{method_col} = am.oid;
              """.format(method_col=method_col, madlib_schema_oid=self._schema_oid))
          for row in rows:
              if (row['opcname'], row['index']) in changed_opcs:
                  ret.append(row['oid'])
  
          return ret
function_tokens: def get_udoc_oids ( self ) : ret = [ ] changed_opcs = set ( ) for opc , li in self . _udoc . items ( ) : for e in li : changed_opcs . add ( ( opc , e [ 'index' ] ) ) gte_gpdb5 = ( self . _portid == 'greenplum' and is_rev_gte ( get_rev_num ( self . _dbver ) , get_rev_num ( '5.0' ) ) ) if ( self . _portid == 'postgres' or gte_gpdb5 ) : method_col = 'opcmethod' else : method_col = 'opcamid' rows = self . _run_sql ( """
              SELECT
                  oc.oid, opcname, amname AS index
              FROM
                  pg_opclass AS oc, pg_am as am
              WHERE
                  oc.opcnamespace = {madlib_schema_oid} AND
                  oc.{method_col} = am.oid;
              """ . format ( method_col = method_col , madlib_schema_oid = self . _schema_oid ) ) for row in rows : if ( row [ 'opcname' ] , row [ 'index' ] ) in changed_opcs : ret . append ( row [ 'oid' ] ) return ret