postgresql/contrib/sepgsql
Tom Lane 94077df1c2 Avoid casting away const in sepgsql's quote_object_name.
quote_identifier's API is designed on the assumption that it's
not worth worrying about a short-term memory leak when we have
to produce a quoted version of the given identifier.  Whoever wrote
quote_object_name took it on themselves to override that judgment,
but the only way to do so is to cast away const someplace.  We can
avoid that and substantially shorten the function by going along
with quote_identifier's opinion.  AFAICS quote_object_name is not
used in any way where this would be unsustainable.

Per discussion of commit 45987aae2, which exposed that we had
a casting-away-const situation here.

Discussion: https://postgr.es/m/20220827112304.GL2342@telsasoft.com
2022-08-27 12:52:39 -04:00
..
expected Include permissive/enforcing state in sepgsql log messages. 2022-01-12 14:23:13 -05:00
sql Remove gratuitous uses of deprecated SELECT INTO 2021-01-28 14:28:41 +01:00
.gitignore Minor sepgsql regression test fixes. 2011-02-02 23:46:51 -05:00
database.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
dml.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
hooks.c Remove now superfluous declarations of dlsym()ed symbols. 2022-07-17 17:29:32 -07:00
label.c Avoid casting away const in sepgsql's quote_object_name. 2022-08-27 12:52:39 -04:00
launcher Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
proc.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
relation.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
schema.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
selinux.c Include permissive/enforcing state in sepgsql log messages. 2022-01-12 14:23:13 -05:00
sepgsql-regtest.te Update sepgsql to add mandatory access control for TRUNCATE 2019-11-23 10:46:44 -05:00
sepgsql.h Include permissive/enforcing state in sepgsql log messages. 2022-01-12 14:23:13 -05:00
sepgsql.sql.in sepgsql_setcon(). 2012-03-15 16:08:40 -04:00
test_sepgsql Update sepgsql to add mandatory access control for TRUNCATE 2019-11-23 10:46:44 -05:00
uavc.c Include permissive/enforcing state in sepgsql log messages. 2022-01-12 14:23:13 -05:00