explan refactoring - Mailing list pgsql-hackers

From Robert Haas
Subject explan refactoring
Date
Msg-id 603c8f070905292048y804d505wf701214e7b81fde7@mail.gmail.com
Whole thread Raw
List pgsql-hackers
As I was trying to figure out the least invasive way to make
explain_outNode() support machine-readable output, I noticed that
there is a whole pile of duplicated code for dealing with scan
targets.  The attached refactoring may be worth applying independently
of what happens with the rest of the project, so it's attached here
for review and comment.

This also removes a redundant branch of a switch further down, folding
T_SubqueryScan into the preceding chunk.

It's tempting to simplify this further by ripping some of the asserts
out of ExplainScanTarget() on the theory that, while it may be good
sanity checking, it's not really EXPLAIN's job to do this type of
validation.  But I've left them alone for now.

...Robert

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: libpq is not thread safe
Next
From: decibel
Date:
Subject: Re: Allow vacuumdb to only analyze