Comments (7)
Do you mean diskquota should not refresh until receiving a signal, and the gap time between two signals should be larger than diskquota_naptime? But the signal is also required to be sent at regular intervals to keep the data in diskquota latest, isn't it?
from diskquota.
Do you mean diskquota should not refresh until receiving a signal, and the gap time between two signals should be larger than diskquota_naptime?
no, I mean something like https://github.com/RekGRpth/pg_task/blob/7262c04e642ec744d4a34ae3942f9188bfe38409/work.c#L959 where work_sleep function called not frequently than current_timeout irrespective if WaitEventSetWaitMy function returns frequently
from diskquota.
Get your point, but in this bgworker, the wait latch function only receives WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH
. I think it will be not frequently triggered by signals.
from diskquota.
I think it will be not frequently triggered by signals.
config reload signal causes WL_LATCH_SET event for example
from diskquota.
I think the configuration reload is not so frequent. And diskquota refresh procedure just updates the size information of tables that become active tables during two refresh procedures. After the current refresh procedure, the next procedure will do fewer updates. Do you have any other example for this scene where the latch will be set several times every minute?
from diskquota.
Do you have any other example for this scene where the latch will be set several times every minute?
this is only theoretical reasoning, what needs to be checked how much time has actually passed since the previous launch
from diskquota.
We will raise a PR to rearrange the bgworker process.
from diskquota.
Related Issues (17)
- Which branch/tag is stable? HOT 5
- 2.0.0/2.0.1 use WaitLatch incorrectly, which can cause coredump HOT 5
- Versions of diskquota HOT 13
- wrong required cmake version 3.18
- simplify error message HOT 1
- string may too big HOT 22
- You should not pass database name via background worker structure
- Infinite loop when diskquota receives notice message HOT 11
- Misspelling of words HOT 2
- Compile alerts HOT 1
- about diskquota HOT 2
- cc1: some warnings being treated as errors HOT 4
- Warning: out of shared memory
- Diskquota uses `pg_total_relation_size()` to compute size when table and indexes are in different tablespaces HOT 2
- Add support for querying blackmap. HOT 2
- Vacuum to table table_size frequently to shrink the size of the table
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 diskquota.