internal/postgres: use RepeatableRead in InsertModule
The isolation level is changed back to RepeatableRead in InsertModule to
fix issues when inserting into documentation_symbols.
For golang/go#37102
Trust: Julie Qiu
@@ -93,7 +93,7 @@ func (db *DB) saveModule(ctx context.Context, m *internal.Module) (isLatest bool
return false, err
}
- err = db.db.Transact(ctx, sql.LevelDefault, func(tx *database.DB) error {
+ err = db.db.Transact(ctx, sql.LevelRepeatableRead, func(tx *database.DB) error {
moduleID, err := insertModule(ctx, tx, m)
if err != nil {
return err
