Skip to content

Commit e206ff5

Browse files
author
Hiroshi Inoue
committed
Removed a check for REINDEX TABLE.
1 parent e55b1f9 commit e206ff5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/backend/tcop/utility.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.124 2002/01/03 23:21:32 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125 2002/02/07 00:27:30 inoue Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -885,15 +885,6 @@ ProcessUtility(Node *parsetree,
885885
break;
886886
case TABLE:
887887
relname = (char *) stmt->name;
888-
if (IsSystemRelationName(relname))
889-
{
890-
if (!allowSystemTableMods)
891-
elog(ERROR, "\"%s\" is a system table. call REINDEX under standalone postgres with -O -P options",
892-
relname);
893-
if (!IsIgnoringSystemIndexes())
894-
elog(ERROR, "\"%s\" is a system table. call REINDEX under standalone postgres with -P -O options",
895-
relname);
896-
}
897888
if (!pg_ownercheck(GetUserId(), relname, RELNAME))
898889
elog(ERROR, "%s: %s", relname, aclcheck_error_strings[ACLCHECK_NOT_OWNER]);
899890
ReindexTable(relname, stmt->force);

0 commit comments

Comments
 (0)