Skip to content

[#329] get_pg_node_state looks for postmaster to avoid "PID file is empty" error#4

Closed
dmitry-lipetsk wants to merge 4 commits intomasterfrom
master-fix329--v01--internal_platform_utils
Closed

[#329] get_pg_node_state looks for postmaster to avoid "PID file is empty" error#4
dmitry-lipetsk wants to merge 4 commits intomasterfrom
master-fix329--v01--internal_platform_utils

Conversation

@dmitry-lipetsk
Copy link
Owner

This patch suggests a solution to fix an error "PID file is empty" during getting a server state data.

When pg_ctl returns this error, we are trying to find postmaster process for our data directory.

If we find it then we wait a few seconds and do the next attempt to get a server state data.

Closes postgrespro#329.

…D file is empty" error

This patch suggests a solution to fix an error "PID file is empty" during getting a server state data.

When pg_ctl returns this error, we are trying to find postmaster process for our data directory.

If we find it then we wait a few seconds and do the next attempt to get server state data.

Closes postgrespro#329.
@dmitry-lipetsk
Copy link
Owner Author

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_pg_node_state can fail (PID file is empty)

1 participant