• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cybertec-postgresql / pgwatch / 19174648345
74%

Build:
DEFAULT BRANCH: master
Ran 07 Nov 2025 04:33PM UTC
Jobs 1
Files 43
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Nov 2025 04:30PM UTC coverage: 71.845% (+0.5%) from 71.383%
19174648345

push

github

web-flow
[+] support variable partition intervals in postgres sink (#1012)

* [+] allow to specify interval for Postgres partitioning

`admin.ensure_partition_metric_dbname_time()` acccepts now
partition_period interval. The naming format is 'YYYYMMDD' for intervals
bigger than 1 day and 'YYYYMMDD_HH24' for hour-based intervals.
The function finds the last available partition bound and creates
new partition based on it. So it's possible to use mixed length
partitions, possibly with scheduler based on monitored source and/or
metrics.

* Add new `PartitionInterval` cli parameter.

* Use `PartitionInterval` parameter in `EnsureMetricDbnameTime()`

* Mention `--partition-interval` in docs.

* Add validation logic for `PartitionInterval`

* Add test for `PartitionInterval` validation

* Test actual partitions creation

* Add example usage of `--partition-interval` in docs.

---------

Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com>

10 of 11 new or added lines in 1 file covered. (90.91%)

3570 of 4969 relevant lines covered (71.85%)

0.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
51.65
6.32% internal/sinks/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 19174648345.1 07 Nov 2025 04:33PM UTC 43
71.85
GitHub Action Run
Source Files on build 19174648345
  • Tree
  • List 43
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19174648345
  • 5bcbc1a1 on github
  • Prev Build on master (#19173203694)
  • Next Build on master (#19265612290)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc