mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Add some const qualifiers
There was a mismatch between the const qualifiers for excludeDirContents in src/backend/backup/basebackup.c and src/bin/pg_rewind/filemap.c, which led to a quick search for similar cases. We should make excludeDirContents match, but the rest of the changes seem like a good idea as well. Author: David Steele <david@pgmasters.net> Discussion: https://www.postgresql.org/message-id/flat/669a035c-d23d-2f38-7ff0-0cb93e01d610@pgmasters.net
This commit is contained in:
@@ -231,7 +231,7 @@ typedef enum
|
||||
} partition_method_t;
|
||||
|
||||
static partition_method_t partition_method = PART_NONE;
|
||||
static const char *PARTITION_METHOD[] = {"none", "range", "hash"};
|
||||
static const char *const PARTITION_METHOD[] = {"none", "range", "hash"};
|
||||
|
||||
/* random seed used to initialize base_random_sequence */
|
||||
int64 random_seed = -1;
|
||||
@@ -709,7 +709,7 @@ typedef enum QueryMode
|
||||
} QueryMode;
|
||||
|
||||
static QueryMode querymode = QUERY_SIMPLE;
|
||||
static const char *QUERYMODE[] = {"simple", "extended", "prepared"};
|
||||
static const char *const QUERYMODE[] = {"simple", "extended", "prepared"};
|
||||
|
||||
/*
|
||||
* struct Command represents one command in a script.
|
||||
|
||||
Reference in New Issue
Block a user