Giter VIP home page Giter VIP logo

pg_quota's People

Contributors

hlinnaka avatar

Stargazers

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

Watchers

 avatar

pg_quota's Issues

pg_quota not work in PostgreSQL 12.4

Hello,
I had conpile and install pg_quota in my Postgresql 12.4 database, all things seem to be OK and background worker also lanch and running.
But when I doing test ,the "used" cloumn does not update and remain 0 ,the quota enforcement also not be effect.
My machine is Centsos7.6 with PostgreSQL 12.4 installed.

Following are related information with this problem:

DB Log:
2022-09-02 22:54:14.179 CST [32321] LOG: database system is ready to accept connections
2022-09-02 22:54:14.186 CST [32329] LOG: pg_quota worker for "qzit3" initialized

postgresql.conf
shared_preload_libraries = '$libdir/pg_quota'
pg_quota.databases='qzit3'
pg_quota.refresh_naptime='10 s'
pg_quota.restart_interval='60 s'

Space info:
qzit3=# select pg_size_pretty(pg_total_relation_size('qzibs.test'));
pg_size_pretty

36 MB
(1 row)

qzit3=# SELECT rolname,
qzit3-# pg_size_pretty(space_used) as used,
qzit3-# pg_size_pretty(quota) as quota
qzit3-# FROM quota.status
qzit3-# WHERE rolname::text like 'qzibs%';
rolname | used | quota
---------+---------+-------
qzibs | 0 bytes | 10 kB
(1 row)

What is the matter with this,waiting for your reply.

Thanks in advance,
zhou

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.