1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Add the check CommonSpecialPortal in use(my fault)

This commit is contained in:
Hiroshi Inoue
2000-02-24 04:34:38 +00:00
parent 9110b33f46
commit a5e944580f

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.140 2000/02/21 07:49:40 inoue Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.141 2000/02/24 04:34:38 inoue Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -107,6 +107,9 @@ void CommonSpecialPortalOpen(void)
{ {
char *pname; char *pname;
if (CommonSpecialPortalInUse)
elog(ERROR, "CommonSpecialPortal is in use");
/* /*
* Create a portal for safe memory across transactions. We need to * Create a portal for safe memory across transactions. We need to
* palloc the name space for it because our hash function expects the * palloc the name space for it because our hash function expects the