Giter VIP home page Giter VIP logo

Comments (7)

zhrt123 avatar zhrt123 commented on August 10, 2024

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.

RekGRpth avatar RekGRpth commented on August 10, 2024

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.

zhrt123 avatar zhrt123 commented on August 10, 2024

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.

RekGRpth avatar RekGRpth commented on August 10, 2024

I think it will be not frequently triggered by signals.

config reload signal causes WL_LATCH_SET event for example

from diskquota.

zhrt123 avatar zhrt123 commented on August 10, 2024

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.

RekGRpth avatar RekGRpth commented on August 10, 2024

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.

zhrt123 avatar zhrt123 commented on August 10, 2024

We will raise a PR to rearrange the bgworker process.

from diskquota.

Related Issues (17)

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.