would cause two attempts to delete the hashtable portal, one from
query shutdown and one from portalmem.c. Fix by making hash portals
be treated as 'special' portal names, so that CollectNamedPortals
will not think it should delete them. This code is in need of
complete rewrite (and is already largely rewritten in current
sources), but still need to put a finger in the dike for 7.0.*.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.36 2000/04/12 17:16:10 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.36.2.1 2000/11/10 04:08:25 tgl Exp $
*
*-------------------------------------------------------------------------
*/
return true;
if (strcmp(pname, TRUNCPNAME) == 0)
return true;
+ /*
+ * Quick hack for 7.0.3: treat hashtable portals as special
+ * so that CollectNamedPortals() won't try to delete them.
+ */
+ if (strncmp(pname, "<hashtable ", 11) == 0)
+ return true;
return false;
}