pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedexplain (internal feature)
3+ messages / 3 participants
[nested] [flat]
* explain (internal feature)
@ 2003-03-11 03:25 A.M. <agentm@cmu.edu>
0 siblings, 1 reply; 3+ messages in thread
From: A.M. @ 2003-03-11 03:25 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: explain (internal feature)
@ 2003-03-11 04:08 Josh Berkus <josh@agliodbs.com>
parent: A.M. <agentm@cmu.edu>
0 siblings, 1 reply; 3+ messages in thread
From: Josh Berkus @ 2003-03-11 04:08 UTC (permalink / raw)
To: A.M. <agentm@cmu.edu>; pgsql-sql
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: explain (internal feature)
@ 2003-03-11 04:54 Tom Lane <tgl@sss.pgh.pa.us>
parent: Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2003-03-11 04:54 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: A.M. <agentm@cmu.edu>; pgsql-sql
Josh Berkus <josh@agliodbs.com> 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 <any SQL command> when
it's only gonna fail anyway...
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-03-11 04:54 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-11 03:25 explain (internal feature) A.M. <agentm@cmu.edu>
2003-03-11 04:08 ` Josh Berkus <josh@agliodbs.com>
2003-03-11 04:54 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox