=== modified file 'bin/addons/base/ir/ir_translation.py' --- bin/addons/base/ir/ir_translation.py 2010-03-15 17:58:44 +0000 +++ bin/addons/base/ir/ir_translation.py 2010-08-08 23:08:43 +0000 @@ -65,9 +65,9 @@ def _auto_init(self, cr, context={}): super(ir_translation, self)._auto_init(cr, context) - cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_ltns',)) + cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_src',)) if not cr.fetchone(): - cr.execute('CREATE INDEX ir_translation_ltns ON ir_translation (lang, type, name, src)') + cr.execute('CREATE INDEX ir_translation_src ON ir_translation USING hash (src)') cr.commit() cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_ltn',)) @@ -75,11 +75,6 @@ cr.execute('CREATE INDEX ir_translation_ltn ON ir_translation (lang, type, name)') cr.commit() - cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_lts',)) - if not cr.fetchone(): - cr.execute('CREATE INDEX ir_translation_lts ON ir_translation (lang, type, src)') - cr.commit() - @tools.cache(skiparg=3, multi='ids') def _get_ids(self, cr, uid, name, tt, lang, ids): translations = dict.fromkeys(ids, False)