• Robert Haas's avatar
    Prohibit parallel query when the isolation level is serializable. · a53c06a1
    Robert Haas authored
    In order for this to be safe, the code which hands true serializability
    will need to taught that the SIRead locks taken by a parallel worker
    pertain to the same transaction as those taken by the parallel leader.
    Some further changes may be needed as well.  Until the necessary
    adaptations are made, don't generate parallel plans in serializable
    mode, and if a previously-generated parallel plan is used after
    serializable mode has been activated, run it serially.
    
    This fixes a bug in commit 7aea8e4f.
    a53c06a1
parallel.c 30.7 KB