Comments (7)
Running this on Version 10.
from pgstatspack2.
@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.
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.
Thanks for your time @dtseiler I will try to modify the pgstatspack2_snap.sql accordingly.
from pgstatspack2.
I'd certainly welcome a pull request if you have any.
from pgstatspack2.
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.
and the spid Just query faied!
from pgstatspack2.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgstatspack2.