Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cb041a

Browse files
committed
Set up the privileges on the default schemas in initdb with real GRANT
commands, to arrive at a valid and dumpable state.
1 parent28efaf3 commit8cb041a

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

‎src/bin/initdb/initdb.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
2828
# Portions Copyright (c) 1994, Regents of the University of California
2929
#
30-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.184 2003/02/1923:41:15 momjian Exp $
30+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.185 2003/03/1916:08:59 petere Exp $
3131
#
3232
#-------------------------------------------------------------------------
3333

@@ -1035,6 +1035,8 @@ $ECHO_N "setting privileges on built-in objects... "$ECHO_C
10351035
WHERE proacl IS NULL;
10361036
UPDATE pg_language SET lanacl = '{"=U/$POSTGRES_SUPERUSERNAME"}'\
10371037
WHERE lanpltrusted;
1038+
GRANT USAGE ON SCHEMA pg_catalog TO PUBLIC;
1039+
GRANT CREATE, USAGE ON SCHEMA public TO PUBLIC;
10381040
EOF
10391041
) \
10401042
|"$PGPATH"/postgres$PGSQL_OPT template1> /dev/null|| exit_nicely

‎src/include/catalog/pg_namespace.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_namespace.h,v 1.8 2002/09/04 20:31:37 momjian Exp $
11+
* $Id: pg_namespace.h,v 1.9 2003/03/19 16:08:59 petere Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -66,14 +66,14 @@ typedef FormData_pg_namespace *Form_pg_namespace;
6666
* ---------------
6767
*/
6868

69-
DATA(insertOID=11 ("pg_catalog"PGUID"{=U}" ));
70-
DESCR("System catalognamespace");
69+
DATA(insertOID=11 ("pg_catalog"PGUID_null_ ));
70+
DESCR("System catalogschema");
7171
#definePG_CATALOG_NAMESPACE 11
72-
DATA(insertOID=99 ("pg_toast"PGUID"{=}" ));
73-
DESCR("Reservednamespace for TOAST tables");
72+
DATA(insertOID=99 ("pg_toast"PGUID_null_ ));
73+
DESCR("Reservedschema for TOAST tables");
7474
#definePG_TOAST_NAMESPACE 99
75-
DATA(insertOID=2200 ("public"PGUID"{=UC}" ));
76-
DESCR("Standard publicnamespace");
75+
DATA(insertOID=2200 ("public"PGUID_null_ ));
76+
DESCR("Standard publicschema");
7777
#definePG_PUBLIC_NAMESPACE 2200
7878

7979

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp