Skip to content

Commit a0922ee

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 15b1b4d + 0b2efb3 commit a0922ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/tcop/postgres.c

+4
Original file line numberDiff line numberDiff line change
@@ -2323,6 +2323,10 @@ exec_execute_message(const char *portal_name, long max_rows)
23232323
* message. The next protocol message will start a fresh timeout.
23242324
*/
23252325
disable_statement_timeout();
2326+
2327+
/* unnamed portal executed to completion, so close it */
2328+
if (portal_name[0] == '\0')
2329+
PortalDrop(portal, false);
23262330
}
23272331

23282332
/* Send appropriate CommandComplete to client */

0 commit comments

Comments
 (0)