Defend against crash while processing Describe Statement or Describe Portal

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

Commit: ba7fd49de5e32485c343187446fdd8cf656471c8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-12-14T17:06:37Z
Releases: 8.1.2
Defend against crash while processing Describe Statement or Describe Portal
messages, when client attempts to execute these outside a transaction (start
one) or in a failed transaction (reject message, except for COMMIT/ROLLBACK
statements which we can handle).  Per report from Francisco Figueiredo Jr.

Files

PathChange+/−
src/backend/commands/prepare.c modified +25 −1
src/backend/tcop/postgres.c modified +50 −1
src/include/commands/prepare.h modified +2 −1