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
a267c88d
Commit
a267c88d
authored
May 24, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make setproctitle update for every query.
parent
962c2580
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+3
-1
src/include/utils/ps_status.h
src/include/utils/ps_status.h
+3
-4
No files found.
src/backend/postmaster/postmaster.c
View file @
a267c88d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.14
1 2000/05/23 22:16:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.14
2 2000/05/24 00:14:25
momjian Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -380,6 +380,7 @@ PostmasterMain(int argc, char *argv[])
...
@@ -380,6 +380,7 @@ PostmasterMain(int argc, char *argv[])
*
original_extraoptions
=
'\0'
;
*
original_extraoptions
=
'\0'
;
#ifndef HAVE_SETPROCTITLE
/*
/*
* We need four params so we can display status. If we don't get
* We need four params so we can display status. If we don't get
* them from the user, let's make them ourselves.
* them from the user, let's make them ourselves.
...
@@ -410,6 +411,7 @@ PostmasterMain(int argc, char *argv[])
...
@@ -410,6 +411,7 @@ PostmasterMain(int argc, char *argv[])
fprintf
(
stderr
,
"PostmasterMain execv failed on %s
\n
"
,
argv
[
0
]);
fprintf
(
stderr
,
"PostmasterMain execv failed on %s
\n
"
,
argv
[
0
]);
exit
(
1
);
exit
(
1
);
}
}
#endif
progname
=
argv
[
0
];
progname
=
argv
[
0
];
real_argv
=
argv
;
real_argv
=
argv
;
...
...
src/include/utils/ps_status.h
View file @
a267c88d
...
@@ -19,15 +19,14 @@ extern char Ps_status_buffer[];
...
@@ -19,15 +19,14 @@ extern char Ps_status_buffer[];
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \
do { \
do { \
Assert(argc >= 5); \
sprintf(Ps_status_buffer, "%s %s %s %s", execname, hostname, username, dbname); \
setproctitle("%s %s %s %s %s", execname, hostname, username, dbname, Ps_status_buffer); \
} while (0)
} while (0)
#define PS_CLEAR_STATUS() \
#define PS_CLEAR_STATUS() \
do {
/*Ps_status_buffer[0] = '\0';*/
} while (0)
do {
setproctitle("%s", Ps_status_buffer);
} while (0)
#define PS_SET_STATUS(status) \
#define PS_SET_STATUS(status) \
do {
/*strcpy(Ps_status_buffer, (status));*/
} while (0)
do {
setproctitle("%s %s", Ps_status_buffer, (status));
} while (0)
#define PS_STATUS (Ps_status_buffer)
#define PS_STATUS (Ps_status_buffer)
...
...
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