@classmethod
def get_load_sql(cls, pg_vers):
    """Return SQL statement for finding objects."""
    sql = (
        'SELECT tgname as name, pg_get_triggerdef(oid) as def   FROM  pg_trigger   WHERE tgrelid = %(oid)s AND '
        )
    if pg_vers >= 90000:
        sql += 'NOT tgisinternal'
    else:
        sql += 'NOT tgisconstraint'
    return sql
