postgresql/src/backend
Robert Haas ff499613d2 Several fixes for EXPLAIN (FORMAT YAML), plus one for EXPLAIN (FORMAT JSON).
ExplainSeparatePlans() was busted for both JSON and YAML output - the present
code is a holdover from the original version of my machine-readable explain
patch, which didn't have the grouping_stack machinery.  Also, fix an odd
distribution of labor between ExplainBeginGroup() and ExplainYAMLLineStarting()
when marking lists with "- ", with each providing one character.  This broke
the output format for multi-query statements.  Also, fix ExplainDummyGroup()
for the YAML output format.

Along the way, make the YAML format use escape_yaml() in situations where the
JSON format uses escape_json().  Right now, it doesn't matter because all the
values are known not to need escaping, but it seems safer this way.  Finally,
I added some comments to better explain what the YAML output format is doing.

Greg Sabino Mullane reported the issues with multi-query statements.
Analysis and remaining cleanups by me.
2009-12-16 22:16:16 +00:00
..
access Prevent indirect security attacks via changing session-local state within 2009-12-09 21:57:51 +00:00
bootstrap Add exclusion constraints, which generalize the concept of uniqueness to 2009-12-07 05:22:23 +00:00
catalog Fix a bug introduced when set-returning SQL functions were made inline-able: 2009-12-14 02:15:54 +00:00
commands Several fixes for EXPLAIN (FORMAT YAML), plus one for EXPLAIN (FORMAT JSON). 2009-12-16 22:16:16 +00:00
executor Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
foreign Somebody seems to have thought they could get away without checking for 2009-06-11 16:14:18 +00:00
lib Assorted minor refactoring in EXPLAIN. 2009-07-24 21:08:42 +00:00
libpq Allow LDAP authentication to operate in search+bind mode, meaning it 2009-12-12 21:35:21 +00:00
main Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodes Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
optimizer Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
parser Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
po Translations update for 8.5alpha2 2009-10-20 18:23:27 +00:00
port Reserve the shared memory region during backend startup on Windows, so 2009-07-24 20:12:42 +00:00
postmaster Add support for an application_name parameter, which is displayed in 2009-11-28 23:38:08 +00:00
regex Teach the regular expression functions to do case-insensitive matching and 2009-12-01 21:00:24 +00:00
rewrite Don't treat NEW and OLD as reserved words anymore. For the purposes of rules 2009-11-05 23:24:27 +00:00
snowball Derived files that are shipped in the distribution used to be built in the 2009-08-28 20:26:19 +00:00
storage Add an EXPLAIN (BUFFERS) option to show buffer-usage statistics. 2009-12-15 04:57:48 +00:00
tcop Add a hook to let loadable modules get control at ProcessUtility execution, 2009-12-15 20:04:49 +00:00
tsearch Avoid unnecessary copying of source string when generating a cloned TParser. 2009-12-15 20:37:17 +00:00
utils Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
common.mk Expand test coverage support to entire tree 2009-08-07 20:50:22 +00:00
Makefile Put back "ifeq ($(PORTNAME), solaris)", this time with some documentation 2009-09-05 21:14:04 +00:00
nls.mk Convert the core lexer and parser into fully reentrant code, by making use 2009-07-13 02:02:20 +00:00