Skip to content

Commit a5e9445

Browse files
author
Hiroshi Inoue
committed
Add the check CommonSpecialPortal in use(my fault)
1 parent 9110b33 commit a5e9445

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/commands/vacuum.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.140 2000/02/21 07:49:40 inoue Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.141 2000/02/24 04:34:38 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -107,6 +107,9 @@ void CommonSpecialPortalOpen(void)
107107
{
108108
char *pname;
109109

110+
111+
if (CommonSpecialPortalInUse)
112+
elog(ERROR, "CommonSpecialPortal is in use");
110113
/*
111114
* Create a portal for safe memory across transactions. We need to
112115
* palloc the name space for it because our hash function expects the

0 commit comments

Comments
 (0)