Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pq.Array to avoid hitting parameter limits #8528

Merged
merged 2 commits into from Aug 22, 2022

Conversation

ae-govau
Copy link
Contributor

Changes proposed by this PR

closes #8524 and supersedes PR #8525

Notes to reviewer

I've not yet tested it, but it looks like a very straight forward application of: https://www.opsdash.com/blog/postgres-arrays-golang.html

@ae-govau ae-govau requested a review from a team as a code owner August 18, 2022 04:42
@xtremerui xtremerui self-assigned this Aug 18, 2022
@xtremerui
Copy link
Contributor

If you could add some tests that would be great.

This fails with:
  pq: got 250000 parameters but PostgreSQL only supports 65535 parameters

Signed-off-by: Adam Eijdenberg <adam.eijdenberg@defence.gov.au>
Signed-off-by: Adam Eijdenberg <adam.eijdenberg@defence.gov.au>
@ae-govau ae-govau force-pushed the gh-8524/fix-reaper-with-pq-array branch from d6dca8f to 11f1bb7 Compare August 19, 2022 03:29
@ae-govau
Copy link
Contributor Author

Have added a test, and verified it produces the error before fixing it.

@xtremerui xtremerui added the bug label Aug 22, 2022
Copy link
Contributor

@xtremerui xtremerui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xtremerui xtremerui merged commit 7cff39e into concourse:master Aug 22, 2022
@aglees
Copy link

aglees commented Aug 23, 2022

We've hit this issue in an environment. Any ideas if this is going to be pushed into a public release?

@xtremerui xtremerui added this to the v7.9.0 milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build reaper broken with Postgres if more than 65535 builds to reap
3 participants