I wrote:
> We could revert the addition of the "cleanup == NULL" assert in
> AtCleanup_Portals, but I'm still feeling that that assertion is a good
> thing. Maybe the cleanest fix is to have PortalRun do something to run
> the cleanup hook where it does this:
> /* Prevent portal's commands from being re-executed */
> portal->status = PORTAL_DONE;
Fixed that way. Thanks for the report!
regards, tom lane