Re: Server crash while trying to fetch EXPLAIN query results with a cursor

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rushabh Lathia <rushabh.lathia@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-06-28T03:20:43Z
Lists: pgsql-hackers
Rushabh Lathia <rushabh.lathia@gmail.com> writes:
> Above testcase endup with server crash. Crash is due to following assert
> into ScanQueryForLocks()
> Assert(parsetree->commandType != CMD_UTILITY);

Meh, yeah, more fallout from the CREATE TABLE AS representation change.

> PFA patch for the same.

Applied with some editorialization.  Thanks!

			regards, tom lane