Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 49dd56a

Browse files
author
Commitfest Bot
committed
[CF 5711] v5 - temporary file usage report with extended protocol and unnamed portals
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5711 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CAA5RZ0vGPa=UjiNiS0gK1zHVhysSBPMSaGU5Qc=1PrVKJ6ODCw@mail.gmail.com Author(s): Frédéric Yhuel
2 parents 03c53a7 + dbd23d2 commit 49dd56a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2321,6 +2321,10 @@ exec_execute_message(const char *portal_name, long max_rows)
23212321
* message. The next protocol message will start a fresh timeout.
23222322
*/
23232323
disable_statement_timeout();
2324+
2325+
/* unnamed portal executed to completion, so close it */
2326+
if (portal_name[0] == '\0')
2327+
PortalDrop(portal, false);
23242328
}
23252329

23262330
/* Send appropriate CommandComplete to client */

0 commit comments

Comments
 (0)