pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: A.M. <agentm@cmu.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: explain (internal feature)
Date: Mon, 10 Mar 2003 23:54:29 -0500
Message-ID: <2667.1047358469@sss.pgh.pa.us> (raw)
In-Reply-To: <200303102008.56022.josh@agliodbs.com>
References: <185A05F6-5371-11D7-98AA-0030657192DA@cmu.edu>
	<200303102008.56022.josh@agliodbs.com>

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



view thread (3+ messages)

Message-ID: <2667.1047358469@sss.pgh.pa.us>
Permalink:  ../2667.1047358469@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2667.1047358469@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com, agentm@cmu.edu
  Subject: Re: explain (internal feature)
  In-Reply-To: <2667.1047358469@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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