mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Add new postgres -O option to allow system table structure changes.
This commit is contained in:
@@ -66,7 +66,7 @@ CreateTrigger(CreateTrigStmt *stmt)
|
||||
int found = 0;
|
||||
int i;
|
||||
|
||||
if (IsSystemRelationName(stmt->relname))
|
||||
if (!allowSystemTableMods && IsSystemRelationName(stmt->relname))
|
||||
elog(ERROR, "CreateTrigger: can't create trigger for system relation %s", stmt->relname);
|
||||
|
||||
#ifndef NO_SECURITY
|
||||
|
Reference in New Issue
Block a user