Skip to content

Commit 9b5410a

Browse files
committed
Disallow CLOSE of reserved system portal names.
1 parent 2190cf2 commit 9b5410a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/commands/command.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.76 2000/05/30 06:22:44 inoue Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.77 2000/06/04 22:04:32 tgl Exp $
1212
*
1313
* NOTES
1414
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -234,6 +234,11 @@ PerformPortalClose(char *name, CommandDest dest)
234234
return;
235235
}
236236

237+
if (PortalNameIsSpecial(name))
238+
elog(ERROR,
239+
"The portal name \"%s\" is reserved for internal use",
240+
name);
241+
237242
/* ----------------
238243
* get the portal from the portal name
239244
* ----------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy