dtseiler / pgstatspack2 Goto Github PK
View Code? Open in Web Editor NEWStatistics snapshotting & comparison tool for PostgreSQL
License: MIT License
Statistics snapshotting & comparison tool for PostgreSQL
License: MIT License
ERROR: syntax error at or near "."
LINE 90: i.idx_scan AS idx_scan,
ERROR: syntax error at or near "JOIN"
LINE 98: JOIN pg_statio_all_indexes ii ON i.indexrelid = ii.i...
ERROR: syntax error at or near "ERROR"
LINE 1: ERROR: syntax error at or near "JOIN"
ERROR: syntax error at or near "pgstatspack2"
LINE 99: JOIN pgstatspack2.pgstatspack2_names n1 ON i.scheman...
I am getting different different issues while running the pgstatspack2_snap.sql.
Can you please help here..
Remaining all the scripts looks good and working.
Right now the pgstatspack2_delete_snap() function is hard-coded to delete anything older than 30 days.
SELECT current_timestamp - interval '30 days' INTO old_snap_time;
SELECT max(snapid) INTO old_snap_id FROM pgstatspack_snap WHERE ts < old_snap_time;
This should be customizable through a retained setting, as well as perhaps a parameter. For example, if the parameter is not supplied, it falls back to the stored setting.
Suggested by Frits Hoogland, have eventual support for grafana visualisation of data.
Make sure all objects go into pgstatspack2 schema. Be explicit with all SQL/DDL/DML to reference objects with the qualified schema.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.