Giter VIP home page Giter VIP logo

pg_index_watch's People

Contributors

hydrobiont avatar maximboguk avatar ninabel avatar valeriakaplan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pg_index_watch's Issues

Add support for force reindexing whole cluster

Add support second optional (!) argument for index_watch.periodic procedure: force BOOLEAN DEFAULT FALSE
and pass thought this value into CALL index_watch.do_reindex(_datname, NULL, NULL, NULL, FALSE); instead of hardcoded FALSE.

This will enable us to easily perform wholesale reindex of a multidatabase cluster.
Especially useful after a major upgrade with index internals changes.

корректная отработка случая переименовывания базы

Надо по аналогии как oid обработку для переименовывания индексов добавляли (когда основной id индекса это не имя а oid)
добавить обработку случая переименовывания базы в целом (в pg_database есть колонка oid которая в случае переименования базы не меняется).
Иначе после переименовывания крупной базы - происходит полная совершенно ненужная реиндексаций её.

switch from dblink('connstr' ...) to dblink_connect (once when we strart work with particular db) + dblink('connname') + dblink_disconnect()

Move connect to particular db from dblink calls to the dedicated calls of
https://www.postgresql.org/docs/14/contrib-dblink-connect.html
and
https://www.postgresql.org/docs/14/contrib-dblink-disconnect.html
performed in one place (thus remove four copies of dblink('port='||current_setting('port')||$$ dbname='$$||_datname||$$'$$, code).

PS: this task is prerequisite to start use of https://www.postgresql.org/docs/14/contrib-dblink-connect-u.html and/or supplying user/password in index_watch config (required for managed db such as amazon aurora or RDS).

Clean up the invalid index generated after the failure of concurrent index creation

When I use “create index concurrently”, there can be failures due to various reasons such as lock timeouts, resulting in an invalid index being left behind. If the script for rebuilding indexes fails and leaves behind invalid indexes, is it possible to clean up those invalid indexes before the script execution is completed?

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.