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
c3c75fcd
Commit
c3c75fcd
authored
Sep 11, 2014
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_upgrade: adjust C comments
parent
aae7af3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
contrib/pg_upgrade/controldata.c
contrib/pg_upgrade/controldata.c
+25
-25
No files found.
contrib/pg_upgrade/controldata.c
View file @
c3c75fcd
...
...
@@ -145,7 +145,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: pg_resetxlog problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
ctrl_ver
=
str2uint
(
p
);
}
else
if
((
p
=
strstr
(
bufin
,
"Catalog version number:"
))
!=
NULL
)
...
...
@@ -155,7 +155,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
cat_ver
=
str2uint
(
p
);
}
else
if
((
p
=
strstr
(
bufin
,
"First log segment after reset:"
))
!=
NULL
)
...
...
@@ -182,7 +182,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
logid
=
str2uint
(
p
);
got_log_id
=
true
;
}
...
...
@@ -193,7 +193,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
segno
=
str2uint
(
p
);
got_log_seg
=
true
;
}
...
...
@@ -204,7 +204,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_tli
=
str2uint
(
p
);
got_tli
=
true
;
}
...
...
@@ -215,14 +215,14 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtepoch
=
str2uint
(
p
);
p
=
strchr
(
p
,
'/'
);
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
'/' char */
p
++
;
/* remov
e
'/' char */
cluster
->
controldata
.
chkpnt_nxtxid
=
str2uint
(
p
);
got_xid
=
true
;
}
...
...
@@ -233,7 +233,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtoid
=
str2uint
(
p
);
got_oid
=
true
;
}
...
...
@@ -244,7 +244,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtmulti
=
str2uint
(
p
);
got_multi
=
true
;
}
...
...
@@ -255,7 +255,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_oldstMulti
=
str2uint
(
p
);
got_oldestmulti
=
true
;
}
...
...
@@ -266,7 +266,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
chkpnt_nxtmxoff
=
str2uint
(
p
);
got_mxoff
=
true
;
}
...
...
@@ -277,7 +277,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
align
=
str2uint
(
p
);
got_align
=
true
;
}
...
...
@@ -288,7 +288,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
blocksz
=
str2uint
(
p
);
got_blocksz
=
true
;
}
...
...
@@ -299,7 +299,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
largesz
=
str2uint
(
p
);
got_largesz
=
true
;
}
...
...
@@ -310,7 +310,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
walsz
=
str2uint
(
p
);
got_walsz
=
true
;
}
...
...
@@ -321,7 +321,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
walseg
=
str2uint
(
p
);
got_walseg
=
true
;
}
...
...
@@ -332,7 +332,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
ident
=
str2uint
(
p
);
got_ident
=
true
;
}
...
...
@@ -343,7 +343,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
index
=
str2uint
(
p
);
got_index
=
true
;
}
...
...
@@ -354,7 +354,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
toast
=
str2uint
(
p
);
got_toast
=
true
;
}
...
...
@@ -365,7 +365,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
large_object
=
str2uint
(
p
);
got_large_object
=
true
;
}
...
...
@@ -376,7 +376,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
cluster
->
controldata
.
date_is_int
=
strstr
(
p
,
"64-bit integers"
)
!=
NULL
;
got_date_is_int
=
true
;
}
...
...
@@ -387,7 +387,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* used later for contrib check */
cluster
->
controldata
.
float8_pass_by_value
=
strstr
(
p
,
"by value"
)
!=
NULL
;
got_float8_pass_by_value
=
true
;
...
...
@@ -399,7 +399,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* used later for contrib check */
cluster
->
controldata
.
data_checksum_version
=
str2uint
(
p
);
got_data_checksum_version
=
true
;
...
...
@@ -412,7 +412,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* skip leading spaces and remove trailing newline */
p
+=
strspn
(
p
,
" "
);
if
(
strlen
(
p
)
>
0
&&
*
(
p
+
strlen
(
p
)
-
1
)
==
'\n'
)
...
...
@@ -427,7 +427,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
if
(
p
==
NULL
||
strlen
(
p
)
<=
1
)
pg_fatal
(
"%d: controldata retrieval problem
\n
"
,
__LINE__
);
p
++
;
/* remov
ing
':' char */
p
++
;
/* remov
e
':' char */
/* skip leading spaces and remove trailing newline */
p
+=
strspn
(
p
,
" "
);
if
(
strlen
(
p
)
>
0
&&
*
(
p
+
strlen
(
p
)
-
1
)
==
'\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