Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
11c08c3f
Commit
11c08c3f
authored
May 24, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In pg_upgrade, do case-insensitive checks of locale, encoding, and ctype
because these are often inconsistently capitalized.
parent
8ff1f6a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
contrib/pg_upgrade/check.c
contrib/pg_upgrade/check.c
+4
-3
No files found.
contrib/pg_upgrade/check.c
View file @
11c08c3f
...
...
@@ -333,13 +333,14 @@ static void
check_locale_and_encoding
(
ControlData
*
oldctrl
,
ControlData
*
newctrl
)
{
if
(
strcmp
(
oldctrl
->
lc_collate
,
newctrl
->
lc_collate
)
!=
0
)
/* These are often defined with inconsistent case, so use pg_strcasecmp(). */
if
(
pg_strcasecmp
(
oldctrl
->
lc_collate
,
newctrl
->
lc_collate
)
!=
0
)
pg_log
(
PG_FATAL
,
"old and new cluster lc_collate values do not match
\n
"
);
if
(
str
cmp
(
oldctrl
->
lc_ctype
,
newctrl
->
lc_ctype
)
!=
0
)
if
(
pg_strcase
cmp
(
oldctrl
->
lc_ctype
,
newctrl
->
lc_ctype
)
!=
0
)
pg_log
(
PG_FATAL
,
"old and new cluster lc_ctype values do not match
\n
"
);
if
(
str
cmp
(
oldctrl
->
encoding
,
newctrl
->
encoding
)
!=
0
)
if
(
pg_strcase
cmp
(
oldctrl
->
encoding
,
newctrl
->
encoding
)
!=
0
)
pg_log
(
PG_FATAL
,
"old and new cluster encoding values do not match
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment