Nikhil Sontakke 2b8f98c616 Support approximate hypertable size
If a lot of chunks are involved then the current pl/pgsql function
to compute the size of each chunk via a nested loop is pretty slow.
Additionally, the current functionality makes a system call to get the
file size on disk for each chunk everytime this function is called.
That again slows things down. We now have an approximate function which
is implemented in C to avoid the issues in the pl/pgsql function.
Additionally, this function also uses per backend caching using the
smgr layer to compute the approximate size cheaply. The PG cache
invalidation clears off the cached size for a chunk when DML happens
into it. That size cache is thus able to get the latest size in a
matter of minutes. Also, due to the backend caching, any long running
session will only fetch latest data for new or modified chunks and can
use the cached data (which is calculated afresh the first time around)
effectively for older chunks.
2024-02-01 13:25:41 +05:30
..
2023-11-15 12:17:33 -03:00
2023-11-04 13:29:02 -03:00
2024-02-01 13:25:41 +05:30
2024-01-15 13:57:36 +01:00
2023-10-09 09:10:04 -03:00
2022-09-23 11:40:48 +03:00
2022-09-23 11:40:48 +03:00
2023-11-04 13:29:02 -03:00
2024-01-22 09:18:26 +01:00