index feaa54d9ea1ecd9142c63c160b2b4e8b8a5961e7..ff524d579090b63dfbf256bbc4c876eaa0161b03 100644 (file)
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.80 2005年04月12日 14:19:43 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.81 2005年04月12日 19:29:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
/*
* Set up privileges
*
- * We set most system catalogs and built-in functions as world-accessible.
+ * We mark most system catalogs as world-readable. We don't currently have
+ * to touch functions, languages, or databases, because their default
+ * permissions are OK.
+ *
* Some objects may require different permissions by default, so we
* make sure we don't overwrite privilege sets that have already been
* set (NOT NULL).
"UPDATE pg_class "
" SET relacl = '{\"=r/\\\\\"$POSTGRES_SUPERUSERNAME\\\\\"\"}' "
" WHERE relkind IN ('r', 'v', 'S') AND relacl IS NULL;\n",
- "UPDATE pg_proc "
- " SET proacl = '{\"=X/\\\\\"$POSTGRES_SUPERUSERNAME\\\\\"\"}' "
- " WHERE proacl IS NULL;\n",
- "UPDATE pg_language "
- " SET lanacl = '{\"=U/\\\\\"$POSTGRES_SUPERUSERNAME\\\\\"\"}' "
- " WHERE lanpltrusted;\n",
"GRANT USAGE ON SCHEMA pg_catalog TO PUBLIC;\n",
"GRANT CREATE, USAGE ON SCHEMA public TO PUBLIC;\n",
NULL