assertion failure w/extended query protocol

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: assertion failure w/extended query protocol
Date: 2012-10-19 16:19:36
Message-ID: CA+TgmoZysvsQGvwLp4dEKQ=vE=L7RkU_fd+dtU=aqcu86NsatA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rushabh Lathia of the EnterpriseDB development team and I have been
doing some testing of the extended query protocol and have found a
case where it causes an assertion failure. Here's how to reproduce:

1. Apply the attached patch to teach psql how to use the extended
query protocol. Compile, install.

2. Start the modified psql and do this:

\set PROTOCOL extended
PREPARE stmt as select 1;
CREATE TEMPORARY TABLE tmptbl AS EXECUTE stmt;

The result is:

TRAP: FailedAssertion("!(qry->commandType != CMD_UTILITY)", File:
"utility.c", Line: 1516)

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
psql-protocol.patch application/octet-stream 2.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-10-19 16:38:30 Re: First draft of snapshot snapshot building design document
Previous Message Satoshi Nagayasu 2012-10-19 16:03:25 Re: pg_stat_lwlocks view - lwlocks statistics, round 2