summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorPeter Eisentraut2003-03-19 16:08:59 +0000
committerPeter Eisentraut2003-03-19 16:08:59 +0000
commit8cb041aadad10e423570b54e71c6237a86c84d95 (patch)
tree76384cfc3b2440524b5e0215bb8f1d7fb359cdee /src/bin
parent28efaf3ccd421a111a34954f531f2f9888f99242 (diff)
Set up the privileges on the default schemas in initdb with real GRANT
commands, to arrive at a valid and dumpable state.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/initdb/initdb.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh
index 73f4247dfb..6bd01db36b 100644
--- a/src/bin/initdb/initdb.sh
+++ b/src/bin/initdb/initdb.sh
@@ -27,7 +27,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.184 2003/02/19 23:41:15 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.185 2003/03/19 16:08:59 petere Exp $
#
#-------------------------------------------------------------------------
@@ -1035,6 +1035,8 @@ $ECHO_N "setting privileges on built-in objects... "$ECHO_C
WHERE proacl IS NULL;
UPDATE pg_language SET lanacl = '{"=U/$POSTGRES_SUPERUSERNAME"}' \
WHERE lanpltrusted;
+ GRANT USAGE ON SCHEMA pg_catalog TO PUBLIC;
+ GRANT CREATE, USAGE ON SCHEMA public TO PUBLIC;
EOF
) \
| "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely