diff options
| author | Peter Eisentraut | 2003-01-23 23:39:07 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2003-01-23 23:39:07 +0000 |
| commit | ef7422510e93266e5aa9bb926d6747d5f2ae21f4 (patch) | |
| tree | 98643df576fccfcb2cc4c9e37fcf533f64f1a56c /src/bin/initdb | |
| parent | aa78ca3a9591def436d6ce87cb37e7ad5f584308 (diff) | |
Grant options, and cascading revoke. Grant options are allowed only for
users right now, not groups. Extension of has_foo_privileges functions to
query the grant options. Extension of aclitem type to store grantor.
Diffstat (limited to 'src/bin/initdb')
| -rw-r--r-- | src/bin/initdb/initdb.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 6b5afa0412a..5dad4e34a05 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.181 2003/01/21 10:11:52 petere Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.182 2003/01/23 23:39:01 petere Exp $ # #------------------------------------------------------------------------- @@ -1029,14 +1029,12 @@ echo "ok" $ECHO_N "setting privileges on built-in objects... "$ECHO_C ( cat <<EOF - UPDATE pg_class SET relacl = '{"=r"}' \ + UPDATE pg_class SET relacl = '{"=r/$POSTGRES_SUPERUSERNAME"}' \ WHERE relkind IN ('r', 'v', 'S') AND relacl IS NULL; - UPDATE pg_proc SET proacl = '{"=X"}' \ + UPDATE pg_proc SET proacl = '{"=X/$POSTGRES_SUPERUSERNAME"}' \ WHERE proacl IS NULL; - UPDATE pg_language SET lanacl = '{"=U"}' \ + UPDATE pg_language SET lanacl = '{"=U/$POSTGRES_SUPERUSERNAME"}' \ WHERE lanpltrusted; - UPDATE pg_language SET lanacl = '{"="}' \ - WHERE NOT lanpltrusted; EOF ) \ | "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely |
