mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +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:
@@ -228,7 +228,7 @@ static const FormData_pg_attribute a6 = {
|
||||
.attislocal = true,
|
||||
};
|
||||
|
||||
static const FormData_pg_attribute *SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6};
|
||||
static const FormData_pg_attribute *const SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6};
|
||||
|
||||
/*
|
||||
* This function returns a Form_pg_attribute pointer for a system attribute.
|
||||
|
||||
@@ -316,9 +316,9 @@ typedef void (*rsv_callback) (Node *node, deparse_context *context,
|
||||
* ----------
|
||||
*/
|
||||
static SPIPlanPtr plan_getrulebyoid = NULL;
|
||||
static const char *query_getrulebyoid = "SELECT * FROM pg_catalog.pg_rewrite WHERE oid = $1";
|
||||
static const char *const query_getrulebyoid = "SELECT * FROM pg_catalog.pg_rewrite WHERE oid = $1";
|
||||
static SPIPlanPtr plan_getviewrule = NULL;
|
||||
static const char *query_getviewrule = "SELECT * FROM pg_catalog.pg_rewrite WHERE ev_class = $1 AND rulename = $2";
|
||||
static const char *const query_getviewrule = "SELECT * FROM pg_catalog.pg_rewrite WHERE ev_class = $1 AND rulename = $2";
|
||||
|
||||
/* GUC parameters */
|
||||
bool quote_all_identifiers = false;
|
||||
|
||||
@@ -112,7 +112,7 @@ typedef struct
|
||||
#error XLOG_BLCKSZ must be between 1KB and 1MB
|
||||
#endif
|
||||
|
||||
static const char *memory_units_hint = gettext_noop("Valid units for this parameter are \"B\", \"kB\", \"MB\", \"GB\", and \"TB\".");
|
||||
static const char *const memory_units_hint = gettext_noop("Valid units for this parameter are \"B\", \"kB\", \"MB\", \"GB\", and \"TB\".");
|
||||
|
||||
static const unit_conversion memory_unit_conversion_table[] =
|
||||
{
|
||||
@@ -149,7 +149,7 @@ static const unit_conversion memory_unit_conversion_table[] =
|
||||
{""} /* end of table marker */
|
||||
};
|
||||
|
||||
static const char *time_units_hint = gettext_noop("Valid units for this parameter are \"us\", \"ms\", \"s\", \"min\", \"h\", and \"d\".");
|
||||
static const char *const time_units_hint = gettext_noop("Valid units for this parameter are \"us\", \"ms\", \"s\", \"min\", \"h\", and \"d\".");
|
||||
|
||||
static const unit_conversion time_unit_conversion_table[] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user