Defend against crash while processing Describe Statement or Describe Portal

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

Commit: 4ce6be4f5e1e4b0c89c5c8de179e3fa8216a7b54
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-12-14T17:06:28Z
Releases: 8.2.0
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