Comments (2)
Hi,
Indeed a change in the retention most likely won't lead to immediate disk release. The reason for that is that the purge is only done once every powa_coalesce
snapshot.
One way to force immediate purge is you have access to the database is to get the list of purge functions for that server (I used here $the_srv_id instead):
SELECT function_name
FROM powa_functions
WHERE operation='purge'
AND enabled
AND srvid = $the_srv_id
ORDER BY module;
function_name
---------------------------
powa_qualstats_purge
powa_stat_bgwriter_purge
powa_statements_purge
powa_databases_purge
powa_all_relations_purge
powa_user_functions_purge
(6 rows)
And call them one by one, in the order return by that query. For instance with the above resultset you would have to run:
SELECT powa_qualstats_purge($the_srv_id);
SELECT powa_stat_bgwriter_purge($the_srv_id);
SELECT powa_statements_purge($the_srv_id);
SELECT powa_databases_purge($the_srv_id);
SELECT powa_all_relations_purge($the_srv_id);
SELECT powa_user_functions_purge($the_srv_id);
Repeat that for all the servers you want to apply an immediate purge.
It might be a good idea to add a way to force that via the UI for similar cases.
from powa-archivist.
I'm assuming that this answered your question. Feel free to reopen this issue if that wasn't the case.
from powa-archivist.
Related Issues (20)
- typo in powa--4.0.0.sql in REL_4_0_0 HOT 4
- Segmentation fault during powa_take_snapshot() on PostgreSQL 9.6.17 HOT 10
- Add possibility to ignore query HOT 1
- PG13: powa_take_snapshot(0): function "powa_statements_snapshot" failed: column pgss.total_time does not exist HOT 7
- Snapshot pg_stat_progres_* views? HOT 3
- Work without create extension HOT 1
- Bugs in powa_qualstats_aggregate_constvalues_current, suggested rewrite HOT 2
- powa_kcache_metrics_current grows enormously HOT 12
- powa_wait_sampling_snapshot(0) query is running by active state for a long time HOT 5
- does powa support PG14? HOT 6
- memory leak HOT 11
- duplicate key value violates unique constraint "powa_statements_pkey" HOT 12
- Extension pg_profile influences extension powa HOT 3
- Enhancement proposition HOT 3
- Track number of concurrent connections HOT 1
- powa_take_snapshot fails following powa upgrade to 4.1.3 HOT 20
- "powa_statements_snapshot" failed HOT 4
- DROP queries are hanged if powa is enabled HOT 5
- we need to take toplevel into account in pg_stat_statements HOT 2
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 powa-archivist.