explan refactoring

Поиск
Список
Период
Сортировка
От Robert Haas
Тема explan refactoring
Дата
Msg-id 603c8f070905292048y804d505wf701214e7b81fde7@mail.gmail.com
обсуждение исходный текст
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq is not thread safe
Следующее
От: decibel
Дата:
Сообщение: Re: Allow vacuumdb to only analyze