Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b5410a

Browse files
committed
Disallow CLOSE of reserved system portal names.
1 parent2190cf2 commit9b5410a

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/0422: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)

[8]ページ先頭

©2009-2025 Movatter.jp