citus/src/include
Emel Şimşek 686d2b46ca
Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735)
Propagates SECURITY LABEL ON ROLE stmt (https://github.com/citusdata/citus/pull/7304)
We propagate `SECURITY LABEL [for provider] ON ROLE rolename IS
labelname` to the worker nodes.
We also make sure to run the relevant `SecLabelStmt` commands on a
newly added node by looking at roles found in `pg_shseclabel`.

See official docs for explanation on how this command works:
https://www.postgresql.org/docs/current/sql-security-label.html
This command stores the role label in the `pg_shseclabel` catalog table.

This commit also fixes the regex string in
`check_gucs_are_alphabetically_sorted.sh` script such that it escapes
the dot. Previously it was looking for all strings starting with "citus"
instead of "citus." as it should.

To test this feature, I currently make use of a special GUC to control
label provider registration in PG_init when creating the Citus extension.

(cherry picked from commit 0d1f18862b)

Co-authored-by: Naisila Puka <37271756+naisila@users.noreply.github.com>
2024-11-13 14:21:08 +03:00
..
columnar Actually sort includes after cherry-pick 2024-04-17 10:26:50 +02:00
distributed Propagates SECURITY LABEL ON ROLE stmt (#7304) (#7735) 2024-11-13 14:21:08 +03:00
.gitignore Self-implemented review feedback 2017-04-03 22:55:12 -06:00
citus_config.h.in Renames configure.in to fix warnings (#6034) 2022-07-19 18:24:15 +02:00
citus_version.h.in HAVE_LZ4 -> HAVE_CITUS_LZ4 (#5541) 2021-12-16 16:21:52 +03:00
pg_version_compat.h move pg_version_constants.h to toplevel include (#7335) 2024-04-17 10:26:50 +02:00
pg_version_constants.h move pg_version_constants.h to toplevel include (#7335) 2024-04-17 10:26:50 +02:00