• Tom Lane's avatar
    Repair corner-case bug in array version of percentile_cont(). · b0f47911
    Tom Lane authored
    The code for advancing through the input rows overlooked the case that we
    might already be past the first row of the row pair now being considered,
    in case the previous percentile also fell between the same two input rows.
    
    Report and patch by Andrew Gierth; logic rewritten a bit for clarity by me.
    b0f47911
aggregates.out 45.4 KB