Giter Club home page Giter Club logo

Comments (7)

jayjay8860 avatar jayjay8860 commented on May 27, 2024

Running this on Version 10.

from pgstatspack2.

dtseiler avatar dtseiler commented on May 27, 2024

@jayjay8860 I can't really provide support here yet. None of this is close to be ready for use and I've had to backburner it myself.

from pgstatspack2.

dtseiler avatar dtseiler commented on May 27, 2024

FWIW looks like idx_scan isn't in pg_statio_all_indexes, but is in pg_stat_all_indexes. It may have moved/changed from the version of PostgreSQL that was current when the original pgstatspack was being developed.

from pgstatspack2.

jayjay8860 avatar jayjay8860 commented on May 27, 2024

Thanks for your time @dtseiler I will try to modify the pgstatspack2_snap.sql accordingly.

from pgstatspack2.

dtseiler avatar dtseiler commented on May 27, 2024

I'd certainly welcome a pull request if you have any.

from pgstatspack2.

Wangyegithubv avatar Wangyegithubv commented on May 27, 2024

sir help me !tks!!!

[postgres@wks-lmspg-rp01 bin]$ ./snapshot.sh
Results for database LMS_PG
ERROR: missing FROM-clause entry for table "n"
LINE 11: ... JOIN pgstatspack2.pgstatspack2_names n1 ON s.query=n.name
^
QUERY: INSERT INTO pgstatspack2.pgstatspack2_statements
( snapid, calls, total_time, "rows", query_id, user_name_id)
SELECT
spid AS snapid,
s.calls AS calls,
s.total_time AS total_time,
s.rows AS rows,
n1.nameid,
n2.nameid
FROM pg_stat_statements s
JOIN pgstatspack2.pgstatspack2_names n1 ON s.query=n.name
JOIN pgstatspack2.pgstatspack2_names n2 ON s.pg_get_userbyid(s.userid)=n2.name
WHERE dbid=(select oid FROM pg_database WHERE datname=current_database())
ORDER BY total_time
CONTEXT: PL/pgSQL function pgstatspack2.pgstatspack2_snap(character varying) line 175 at SQL statement

from pgstatspack2.

Wangyegithubv avatar Wangyegithubv commented on May 27, 2024

and the spid Just query faied!
image

from pgstatspack2.

Related Issues (4)

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.