mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Correct constness of a few variables.
This allows the compiler / linker to mark affected pages as read-only.
There's other cases, but they're a bit more invasive, and should go
through some review. These are easy.
They were found with
objdump -j .data -t src/backend/postgres|awk '{print $4, $5, $6}'|sort -r|less
Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya@alap3.anarazel.de
This commit is contained in:
@@ -85,7 +85,7 @@ typedef enum
|
||||
} event_trigger_command_tag_check_result;
|
||||
|
||||
/* XXX merge this with ObjectTypeMap? */
|
||||
static event_trigger_support_data event_trigger_support[] = {
|
||||
static const event_trigger_support_data event_trigger_support[] = {
|
||||
{"ACCESS METHOD", true},
|
||||
{"AGGREGATE", true},
|
||||
{"CAST", true},
|
||||
@@ -282,7 +282,7 @@ static event_trigger_command_tag_check_result
|
||||
check_ddl_tag(const char *tag)
|
||||
{
|
||||
const char *obtypename;
|
||||
event_trigger_support_data *etsd;
|
||||
const event_trigger_support_data *etsd;
|
||||
|
||||
/*
|
||||
* Handle some idiosyncratic special cases.
|
||||
|
||||
Reference in New Issue
Block a user