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
8df2f371
Commit
8df2f371
authored
Mar 27, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve consistency of SQL code capitalization
parent
a4d75c86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/catalog/system_views.sql
src/backend/catalog/system_views.sql
+7
-7
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+1
-1
No files found.
src/backend/catalog/system_views.sql
View file @
8df2f371
...
...
@@ -47,7 +47,7 @@ CREATE VIEW pg_shadow AS
ON
(
pg_authid
.
oid
=
setrole
AND
setdatabase
=
0
)
WHERE
rolcanlogin
;
REVOKE
ALL
on
pg_shadow
FROM
public
;
REVOKE
ALL
ON
pg_shadow
FROM
public
;
CREATE
VIEW
pg_group
AS
SELECT
...
...
@@ -251,7 +251,7 @@ CREATE VIEW pg_stats WITH (security_barrier) AS
AND
has_column_privilege
(
c
.
oid
,
a
.
attnum
,
'select'
)
AND
(
c
.
relrowsecurity
=
false
OR
NOT
row_security_active
(
c
.
oid
));
REVOKE
ALL
on
pg_statistic
FROM
public
;
REVOKE
ALL
ON
pg_statistic
FROM
public
;
CREATE
VIEW
pg_stats_ext
WITH
(
security_barrier
)
AS
SELECT
cn
.
nspname
AS
schemaname
,
...
...
@@ -360,7 +360,7 @@ CREATE VIEW pg_stats_ext_exprs WITH (security_barrier) AS
)
stat
ON
(
stat
.
expr
IS
NOT
NULL
);
-- unprivileged users may read pg_statistic_ext but not pg_statistic_ext_data
REVOKE
ALL
on
pg_statistic_ext_data
FROM
public
;
REVOKE
ALL
ON
pg_statistic_ext_data
FROM
public
;
CREATE
VIEW
pg_publication_tables
AS
SELECT
...
...
@@ -596,13 +596,13 @@ GRANT SELECT, UPDATE ON pg_settings TO PUBLIC;
CREATE
VIEW
pg_file_settings
AS
SELECT
*
FROM
pg_show_all_file_settings
()
AS
A
;
REVOKE
ALL
on
pg_file_settings
FROM
PUBLIC
;
REVOKE
ALL
ON
pg_file_settings
FROM
PUBLIC
;
REVOKE
EXECUTE
ON
FUNCTION
pg_show_all_file_settings
()
FROM
PUBLIC
;
CREATE
VIEW
pg_hba_file_rules
AS
SELECT
*
FROM
pg_hba_file_rules
()
AS
A
;
REVOKE
ALL
on
pg_hba_file_rules
FROM
PUBLIC
;
REVOKE
ALL
ON
pg_hba_file_rules
FROM
PUBLIC
;
REVOKE
EXECUTE
ON
FUNCTION
pg_hba_file_rules
()
FROM
PUBLIC
;
CREATE
VIEW
pg_timezone_abbrevs
AS
...
...
@@ -614,7 +614,7 @@ CREATE VIEW pg_timezone_names AS
CREATE
VIEW
pg_config
AS
SELECT
*
FROM
pg_config
();
REVOKE
ALL
on
pg_config
FROM
PUBLIC
;
REVOKE
ALL
ON
pg_config
FROM
PUBLIC
;
REVOKE
EXECUTE
ON
FUNCTION
pg_config
()
FROM
PUBLIC
;
CREATE
VIEW
pg_shmem_allocations
AS
...
...
@@ -1239,7 +1239,7 @@ CREATE VIEW pg_user_mappings AS
JOIN
pg_foreign_server
S
ON
(
U
.
umserver
=
S
.
oid
)
LEFT
JOIN
pg_authid
A
ON
(
A
.
oid
=
U
.
umuser
);
REVOKE
ALL
on
pg_user_mapping
FROM
public
;
REVOKE
ALL
ON
pg_user_mapping
FROM
public
;
CREATE
VIEW
pg_replication_origin_status
AS
SELECT
*
...
...
src/bin/initdb/initdb.c
View file @
8df2f371
...
...
@@ -1437,7 +1437,7 @@ setup_auth(FILE *cmdfd)
* The authid table shouldn't be readable except through views, to
* ensure passwords are not publicly visible.
*/
"REVOKE ALL
on
pg_authid FROM public;
\n\n
"
,
"REVOKE ALL
ON
pg_authid FROM public;
\n\n
"
,
NULL
};
...
...
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