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

Commit cc44edb

Browse files
committed
Merge pull request MeetMe#216 from 3dna/fix-postgres-relation-stats
filter out the relation_stats parameter
2 parents 9881110 + a669d2c commit cc44edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

newrelic_plugin_agent/plugins/postgresql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def connection_arguments(self):
241241
242242
:return dict: The dictionary to be passed to psycopg2.connect via double-splat
243243
"""
244-
filtered_args = ["name","superuser"]
244+
filtered_args = ["name","superuser","relation_stats"]
245245
args = {}
246246
for key in set(self.config) - set(filtered_args):
247247
if key == 'dbname':
@@ -273,4 +273,4 @@ def server_version(self):
273273
"""
274274
return (self.connection.server_version % 1000000 / 10000,
275275
self.connection.server_version % 10000 / 100,
276-
self.connection.server_version % 100)
276+
self.connection.server_version % 100)

0 commit comments

Comments
 (0)