Thread

Commits

  1. Fix broken XML formatting in EXPLAIN output for incremental sorts.

  1. BUG #16683: explain plan format xml produces invalid xml

    The Post Office <noreply@postgresql.org> — 2020-10-23T10:26:52Z

    The following bug has been logged on the website:
    
    Bug reference:      16683
    Logged by:          Frits Jalvingh
    Email address:      jal@etc.to
    PostgreSQL version: 13.0
    Operating system:   Ubuntu 20.04
    Description:        
    
    I am running an explain plan:
    explain (format xml,analyze,costs,verbose,timing,buffers) .....
    The result contains the following part which is invalid XML:
    
    					<Incremental-Sort-Groups>
    						<Group-Count>4</Group-Count>
    						<Sort-Methods-Used>
    							<Item>quicksort</Item>
    						</Sort-Methods-Used>
    						<Sort-Space>
    							<Average-Sort-Space-Used>30</Average-Sort-Space-Used>
    							<Peak-Sort-Space-Used>30</Peak-Sort-Space-Used>
    						</Sort-Spaces>
    					</Incremental-Sort-Groups>
    Sort-Space is incorrectly finished with /Sort-Spaces
    
    
  2. Re: BUG #16683: explain plan format xml produces invalid xml

    Daniel Gustafsson <daniel@yesql.se> — 2020-10-23T11:12:13Z

    > On 23 Oct 2020, at 12:26, PG Bug reporting form <noreply@postgresql.org> wrote:
    
    > Sort-Space is incorrectly finished with /Sort-Spaces
    
    Nice catch, it was introduced in the Incremental Sort patch, both for disk and
    memory type sorts as per the attached (unless the opening of the group was
    supposed to be "Sort Spaces" but singular seems the right choice here). 
    
    cheers ./daniel
    
    
  3. Re: BUG #16683: explain plan format xml produces invalid xml

    Frits Jalvingh <jal@etc.to> — 2020-10-23T11:38:38Z

    Thanks a lot for fixing it!
    
    On Fri, Oct 23, 2020 at 1:12 PM Daniel Gustafsson <daniel@yesql.se> wrote:
    
    > > On 23 Oct 2020, at 12:26, PG Bug reporting form <noreply@postgresql.org>
    > wrote:
    >
    > > Sort-Space is incorrectly finished with /Sort-Spaces
    >
    > Nice catch, it was introduced in the Incremental Sort patch, both for disk
    > and
    > memory type sorts as per the attached (unless the opening of the group was
    > supposed to be "Sort Spaces" but singular seems the right choice here).
    >
    > cheers ./daniel
    >
    >
    
  4. Re: BUG #16683: explain plan format xml produces invalid xml

    Tom Lane <tgl@sss.pgh.pa.us> — 2020-10-23T15:20:12Z

    Daniel Gustafsson <daniel@yesql.se> writes:
    >> On 23 Oct 2020, at 12:26, PG Bug reporting form <noreply@postgresql.org> wrote:
    >> Sort-Space is incorrectly finished with /Sort-Spaces
    
    > Nice catch, it was introduced in the Incremental Sort patch, both for disk and
    > memory type sorts as per the attached (unless the opening of the group was
    > supposed to be "Sort Spaces" but singular seems the right choice here). 
    
    Agreed.  Will push in a bit.
    
    			regards, tom lane