explain (internal feature)
explain (internal feature)
От:
"A.M." <agentm@cmu.edu>
Дата:
Would it be a friendly feature for this: db=#explain vacuum; to return: NOTICE: "vacuum" is an internal postgresql feature. instead of: ERROR: parser: parse error at or near "vacuum" at character 9 ?><><><><><><><><>< AgentM agentm@cmu.edu
Re: explain (internal feature)
От:
Josh Berkus <josh@agliodbs.com>
Дата:
AgentM, > db=#explain vacuum; > to return: > NOTICE: "vacuum" is an internal postgresql feature. > instead of: > ERROR: parser: parse error at or near "vacuum" at character 9 > ? No, it would not. Any more questions? -- Josh Berkus Aglio Database Solutions San Francisco
Re: explain (internal feature)
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Josh Berkus writes:
>> db=#explain vacuum;
>> to return:
>> NOTICE: "vacuum" is an internal postgresql feature.
>> instead of:
>> ERROR: parser: parse error at or near "vacuum" at character 9
> No, it would not.
Actually, it's a fair question considering that the 7.3 man page for
EXPLAIN says you can explain "any query". But CVS-tip documentation
says that EXPLAIN can explain
Any SELECT, INSERT, UPDATE, DELETE, EXECUTE, or DECLARE CURSOR query.
which I think is sufficient description. I'm not really eager to
enlarge the parser enough to accept EXPLAIN when
it's only gonna fail anyway...
regards, tom lane