Skip to content

queryNamespaceMappings returned 1 errors #422

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

Open
bliubiu opened this issue Aug 6, 2020 · 2 comments
Open

queryNamespaceMappings returned 1 errors #422

bliubiu opened this issue Aug 6, 2020 · 2 comments

Comments

@bliubiu
Copy link

bliubiu commented Aug 6, 2020

  1. error info:
    postgres_exporter: time="2020-08-06T10:33:51+08:00" level=error msg="queryNamespaceMappings returned 1 errors" source="postgres_exporter.go:1474"

  2. env info:
    postgres_exporter v0.8.0 (built with go1.11)
    psql (PostgreSQL) 12.0
    Red Hat Enterprise Linux Server release 7.6 (Maipo)
    Linux progs 3.10.0-957.el7.x86_64 binary replication montitoring metrics #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@logkaa
Copy link

logkaa commented Aug 24, 2020

  1. error info:
    postgres_exporter: time="2020-08-06T10:33:51+08:00" level=error msg="queryNamespaceMappings returned 1 errors" source="postgres_exporter.go:1474"
  2. env info:
    postgres_exporter v0.8.0 (built with go1.11)
    psql (PostgreSQL) 12.0
    Red Hat Enterprise Linux Server release 7.6 (Maipo)
    Linux progs 3.10.0-957.el7.x86_64 binary replication montitoring metrics #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I had the same problem. I solved it by this :
psql -d postgres -U postgres_exporter -c 'ALTER USER postgres_exporter SET SEARCH_PATH TO postgres_exporter, public, pg_catalog;'

@ahasna
Copy link

ahasna commented Jan 26, 2023

@logkaa Thanks for sharing this . I tried it out but the problem persisted. Any ideas why this is happening at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants