equal
deleted
inserted
replaced
479 source = cnx.repo.system_source |
479 source = cnx.repo.system_source |
480 dbh = source.dbhelper |
480 dbh = source.dbhelper |
481 if source.dbdriver == 'postgres': |
481 if source.dbdriver == 'postgres': |
482 |
482 |
483 def index_filter(idx): |
483 def index_filter(idx): |
484 return not (idx.startswith('pg_') or idx.endswith('_pkey')) |
484 return not (idx.startswith('pg_') or '_pkey' in idx or '_p_key' in idx |
|
485 or idx.endswith('_key')) |
485 else: |
486 else: |
486 |
487 |
487 def index_filter(idx): |
488 def index_filter(idx): |
488 return not idx.startswith('sqlite_') |
489 return not idx.startswith('sqlite_') |
489 |
490 |