Giter Club home page Giter Club logo

pgstatspack2's People

Contributors

dtseiler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pgstatspack2's Issues

facing issue with CREATE OR REPLACE FUNCTION pgstatspack2_snap

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.

Customize snapshot retention

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.

Grafana Support

Suggested by Frits Hoogland, have eventual support for grafana visualisation of data.

pgstatspack2 Schema

Make sure all objects go into pgstatspack2 schema. Be explicit with all SQL/DDL/DML to reference objects with the qualified schema.

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.