pg_ctl_change_v1.patch
text/x-patch
Filename: pg_ctl_change_v1.patch
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
Series: patch v1
| File | + | − |
|---|---|---|
| src/bin/pg_ctl/pg_ctl.c | 3 | 0 |
*** a/src/bin/pg_ctl/pg_ctl.c
--- b/src/bin/pg_ctl/pg_ctl.c
***************
*** 549,557 **** test_postmaster_connection(bool do_checkpoint)
*/
if (i >= 5)
{
! struct stat statbuf;
! if (stat(pid_file, &statbuf) != 0)
return PQPING_NO_RESPONSE;
}
--- 549,558 ----
*/
if (i >= 5)
{
! pgpid_t pid;
! pid = get_pgpid();
! if (pid == 0 || (pid > 0 && !postmaster_is_alive((pid_t) pid)))
return PQPING_NO_RESPONSE;
}