pgadmin-org / pgagent

pgAgent - A job scheduler for PostgreSQL
https://www.pgadmin.org/
Other
97 stars 41 forks source link

Update pgAgent.cpp #13

Closed huggla closed 5 years ago

huggla commented 6 years ago

I had some trouble when running Pgagent in a container. Every time the container was restarted Pgagent would fail with the following error:

WARNING: Couldn't create the primary connection (attempt 1): ERROR: duplicate key value violates unique constraint "pga_jobagent_pkey" DETAIL: Key (jagpid)=(1504) already exists.

This patch removes any preexisting rows in pga_jobagent with identical jagpid.

repo-lockdown[bot] commented 5 years ago

Thanks for your Pull Request! :smile: This repo on GitHub is just a mirror of our real git repositories though, and can't really handle PRs. :frowning: Hopefully you can redo the PR, and direct it to the git.postgresql.org repos? We have a developer guide, if that helps: https://wiki.postgresql.org/wiki/So,_you_want_to_be_a_developer%3F. If this was a PR for pgAdmin, please visit https://www.pgadmin.org/docs/pgadmin4/dev/submitting_patches.html.