*** postgresql-7.3.2.orig/src/backend/commands/tablecmds.c Mon Dec 16 21:39:56 2002 --- postgresql-7.3.2/src/backend/commands/tablecmds.c Wed Mar 12 23:00:42 2003 *************** *** 128,133 **** --- 128,139 ---- */ namespaceId = RangeVarGetCreationNamespace(stmt->relation); + /* Inserted by Diabolo for Check grant on create table for DB */ + if (pg_database_aclcheck(MyDatabaseId, GetSessionUserId(), + ACL_CREATE) != ACLCHECK_OK) + elog(ERROR, "%s: not authorized to create tables", + DatabaseName); + if (!IsBootstrapProcessingMode()) { AclResult aclresult;