Coder Social home page Coder Social logo

Comments (5)

lelutin avatar lelutin commented on June 12, 2024 1

Hi @jobinau thanks for the contextualization of the error. On my part I don't require using version 12 locally for the report production so it's all good! I got the error though because I was reproducing the server setup.

Maybe simply adding a caveat in the README for the supported versions would help build users' expectation with regards to this?

from pg_gather.

jobinau avatar jobinau commented on June 12, 2024 1

Thank you @lelutin for the valuable suggestion. The README is updated.
eaf34c4

from pg_gather.

lelutin avatar lelutin commented on June 12, 2024

Hello there! I'm seeing the exact same error message (but at line 181 of the gather_report.sql file)

Running the script gather_schema.sql with the output file worked without errors.

I'm running this in ubuntu 20.04 with postgresql 12.14 installed from ubuntu packages. I haven't enabled any extensions on postgres.

postgres@ubuntu2004:/home/vagrant$ psql -X -f pg_gather/gather_report.sql > /tmp/report-2023-04-11_09-27.html
psql:pg_gather/gather_report.sql:181: ERROR:  function max(pg_lsn) does not exist
LINE 1: ...TEST((SELECT(current_wal) FROM pg_gather),(SELECT MAX(sent_l...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

from pg_gather.

lelutin avatar lelutin commented on June 12, 2024

In order to check further options for this, I've added the upstream postgresql package source deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main and upgraded to postgresql 12.14-1.pgdg20.04+1 from that package archive, and I'm still getting the same error.

With the same package source installed, I've then purged postgresql-12 and installed postgresql-13 (13.10-1.pgdg20.04+1) instead and with that version of postgres report production works.

from pg_gather.

jobinau avatar jobinau commented on June 12, 2024

Hi @fernandorb10 and @lelutin, Thank you for reporting this.
Even though the data collection from PostgreSQL 10 onwards is supported,
The analysis and report generation from the collected (which generally happens on the local machine (laptop) or a docker container) requires a more recent PostgreSQL version (13+) where max(pg_lsn) is implemented.
The assumption was that the database person would have a recent version of PG on their own local machine.
But, Please let me know if having an older PG version support for analysis and report generation is also essential.

from pg_gather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.