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
3851a92f
Commit
3851a92f
authored
Sep 02, 2002
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert control status codes to human-readable strings.
parent
8c8aa539
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_controldata/pg_controldata.c
+6
-6
No files found.
src/bin/pg_controldata/pg_controldata.c
View file @
3851a92f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
* licence: BSD
* licence: BSD
*
*
* $Header: /cvsroot/pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.
4 2002/09/02 02:47:07 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.
5 2002/09/02 22:18:26 petere
Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -38,15 +38,15 @@ dbState(DBState state)
...
@@ -38,15 +38,15 @@ dbState(DBState state)
switch
(
state
)
switch
(
state
)
{
{
case
DB_STARTUP
:
case
DB_STARTUP
:
return
"STARTUP"
;
return
_
(
"starting up"
)
;
case
DB_SHUTDOWNED
:
case
DB_SHUTDOWNED
:
return
"SHUTDOWNED"
;
return
_
(
"shut down"
)
;
case
DB_SHUTDOWNING
:
case
DB_SHUTDOWNING
:
return
"SHUTDOWNING"
;
return
_
(
"shutting down"
)
;
case
DB_IN_RECOVERY
:
case
DB_IN_RECOVERY
:
return
"IN_RECOVERY"
;
return
_
(
"in recovery"
)
;
case
DB_IN_PRODUCTION
:
case
DB_IN_PRODUCTION
:
return
"IN_PRODUCTION"
;
return
_
(
"in production"
)
;
}
}
return
_
(
"unrecognized status code"
);
return
_
(
"unrecognized status code"
);
}
}
...
...
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