Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Update PostgreSQL plugin to work with PostgreSQL 9.6. #31

Merged
merged 1 commit into from
Mar 22, 2018

Conversation

alson
Copy link

@alson alson commented Mar 22, 2018

The current version of the PostgreSQL plugin fails because the fields like sent_location are now pg_lsn rather than text fields, so split_part fails on them. We tested that the PostgreSQL plugin works without errors with this patch, but we did not have replication set up on those machines.

@Rockstar04
Copy link
Member

I'm not well versed in Postgres, but this looks like it would be backwards comparable with older version as well correct?

@alson
Copy link
Author

alson commented Mar 22, 2018

Yes, it's just a type cast to the type it was in older versions (TEXT), so should have no effect on older versions.

@Rockstar04 Rockstar04 requested a review from wolph March 22, 2018 17:26
@Rockstar04
Copy link
Member

Excellent, thanks for the contribution @alson. I requested a review from @wolph as well and we can get this merged.

@wolph
Copy link

wolph commented Mar 22, 2018

I see no reason not to merge this, it should function in any postgres version :)

@wolph wolph merged commit 9eb0c87 into NewRelic-Python-Plugins:master Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants