Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8cb041aa
Commit
8cb041aa
authored
Mar 19, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up the privileges on the default schemas in initdb with real GRANT
commands, to arrive at a valid and dumpable state.
parent
28efaf3c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+3
-1
src/include/catalog/pg_namespace.h
src/include/catalog/pg_namespace.h
+7
-7
No files found.
src/bin/initdb/initdb.sh
View file @
8cb041aa
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
# Portions Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.18
4 2003/02/19 23:41:15 momjian
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.18
5 2003/03/19 16:08:59 petere
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -1035,6 +1035,8 @@ $ECHO_N "setting privileges on built-in objects... "$ECHO_C
...
@@ -1035,6 +1035,8 @@ $ECHO_N "setting privileges on built-in objects... "$ECHO_C
WHERE proacl IS NULL;
WHERE proacl IS NULL;
UPDATE pg_language SET lanacl = '{"=U/
$POSTGRES_SUPERUSERNAME
"}'
\
UPDATE pg_language SET lanacl = '{"=U/
$POSTGRES_SUPERUSERNAME
"}'
\
WHERE lanpltrusted;
WHERE lanpltrusted;
GRANT USAGE ON SCHEMA pg_catalog TO PUBLIC;
GRANT CREATE, USAGE ON SCHEMA public TO PUBLIC;
EOF
EOF
)
\
)
\
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
...
...
src/include/catalog/pg_namespace.h
View file @
8cb041aa
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_namespace.h,v 1.
8 2002/09/04 20:31:37 momjian
Exp $
* $Id: pg_namespace.h,v 1.
9 2003/03/19 16:08:59 petere
Exp $
*
*
* NOTES
* NOTES
* the genbki.sh script reads this file and generates .bki
* the genbki.sh script reads this file and generates .bki
...
@@ -66,14 +66,14 @@ typedef FormData_pg_namespace *Form_pg_namespace;
...
@@ -66,14 +66,14 @@ typedef FormData_pg_namespace *Form_pg_namespace;
* ---------------
* ---------------
*/
*/
DATA
(
insert
OID
=
11
(
"pg_catalog"
PGUID
"{=U}"
));
DATA
(
insert
OID
=
11
(
"pg_catalog"
PGUID
_null_
));
DESCR
(
"System catalog
namespace
"
);
DESCR
(
"System catalog
schema
"
);
#define PG_CATALOG_NAMESPACE 11
#define PG_CATALOG_NAMESPACE 11
DATA
(
insert
OID
=
99
(
"pg_toast"
PGUID
"{=}"
));
DATA
(
insert
OID
=
99
(
"pg_toast"
PGUID
_null_
));
DESCR
(
"Reserved
namespace
for TOAST tables"
);
DESCR
(
"Reserved
schema
for TOAST tables"
);
#define PG_TOAST_NAMESPACE 99
#define PG_TOAST_NAMESPACE 99
DATA
(
insert
OID
=
2200
(
"public"
PGUID
"{=UC}"
));
DATA
(
insert
OID
=
2200
(
"public"
PGUID
_null_
));
DESCR
(
"Standard public
namespace
"
);
DESCR
(
"Standard public
schema
"
);
#define PG_PUBLIC_NAMESPACE 2200
#define PG_PUBLIC_NAMESPACE 2200
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment