Skip to content

Commit 8df2f37

Browse files
committed
Improve consistency of SQL code capitalization
1 parent a4d75c8 commit 8df2f37

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/backend/catalog/system_views.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ CREATE VIEW pg_shadow AS
4747
ON (pg_authid.oid = setrole AND setdatabase = 0)
4848
WHERE rolcanlogin;
4949

50-
REVOKE ALL on pg_shadow FROM public;
50+
REVOKE ALL ON pg_shadow FROM public;
5151

5252
CREATE VIEW pg_group AS
5353
SELECT
@@ -251,7 +251,7 @@ CREATE VIEW pg_stats WITH (security_barrier) AS
251251
AND has_column_privilege(c.oid, a.attnum, 'select')
252252
AND (c.relrowsecurity = false OR NOT row_security_active(c.oid));
253253

254-
REVOKE ALL on pg_statistic FROM public;
254+
REVOKE ALL ON pg_statistic FROM public;
255255

256256
CREATE VIEW pg_stats_ext WITH (security_barrier) AS
257257
SELECT cn.nspname AS schemaname,
@@ -360,7 +360,7 @@ CREATE VIEW pg_stats_ext_exprs WITH (security_barrier) AS
360360
) stat ON (stat.expr IS NOT NULL);
361361

362362
-- unprivileged users may read pg_statistic_ext but not pg_statistic_ext_data
363-
REVOKE ALL on pg_statistic_ext_data FROM public;
363+
REVOKE ALL ON pg_statistic_ext_data FROM public;
364364

365365
CREATE VIEW pg_publication_tables AS
366366
SELECT
@@ -596,13 +596,13 @@ GRANT SELECT, UPDATE ON pg_settings TO PUBLIC;
596596
CREATE VIEW pg_file_settings AS
597597
SELECT * FROM pg_show_all_file_settings() AS A;
598598

599-
REVOKE ALL on pg_file_settings FROM PUBLIC;
599+
REVOKE ALL ON pg_file_settings FROM PUBLIC;
600600
REVOKE EXECUTE ON FUNCTION pg_show_all_file_settings() FROM PUBLIC;
601601

602602
CREATE VIEW pg_hba_file_rules AS
603603
SELECT * FROM pg_hba_file_rules() AS A;
604604

605-
REVOKE ALL on pg_hba_file_rules FROM PUBLIC;
605+
REVOKE ALL ON pg_hba_file_rules FROM PUBLIC;
606606
REVOKE EXECUTE ON FUNCTION pg_hba_file_rules() FROM PUBLIC;
607607

608608
CREATE VIEW pg_timezone_abbrevs AS
@@ -614,7 +614,7 @@ CREATE VIEW pg_timezone_names AS
614614
CREATE VIEW pg_config AS
615615
SELECT * FROM pg_config();
616616

617-
REVOKE ALL on pg_config FROM PUBLIC;
617+
REVOKE ALL ON pg_config FROM PUBLIC;
618618
REVOKE EXECUTE ON FUNCTION pg_config() FROM PUBLIC;
619619

620620
CREATE VIEW pg_shmem_allocations AS
@@ -1239,7 +1239,7 @@ CREATE VIEW pg_user_mappings AS
12391239
JOIN pg_foreign_server S ON (U.umserver = S.oid)
12401240
LEFT JOIN pg_authid A ON (A.oid = U.umuser);
12411241

1242-
REVOKE ALL on pg_user_mapping FROM public;
1242+
REVOKE ALL ON pg_user_mapping FROM public;
12431243

12441244
CREATE VIEW pg_replication_origin_status AS
12451245
SELECT *

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ setup_auth(FILE *cmdfd)
14371437
* The authid table shouldn't be readable except through views, to
14381438
* ensure passwords are not publicly visible.
14391439
*/
1440-
"REVOKE ALL on pg_authid FROM public;\n\n",
1440+
"REVOKE ALL ON pg_authid FROM public;\n\n",
14411441
NULL
14421442
};
14431443

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy