Skip to content

pgAgent Windows service stops when PostgreSQL service is unavailable. #43

@JBHighHair

Description

@JBHighHair

When the PostgreSQL service is unavailable (for example during postgres patching) the pgAgent (Version 4.2) Windows service stops with the message "Failed to query jobs table!".

The Event Viewer details are below...

image

The problem here is that there is no trigger to restart the pgAgent service once the PostgreSQL service is running again.

Setting the pgAgent service with the following recovery settings does not work on Windows Server 2019....

image

Why does the pgAgent service need to stop?
Couldn't it wait and attempt reconnection after 30 seconds or so?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions