Skip to content

Check if build timestamp functions exist before calling them#16

Merged
tom-pang merged 1 commit intomainfrom
check-build-timestamp-func-exists
Jan 26, 2026
Merged

Check if build timestamp functions exist before calling them#16
tom-pang merged 1 commit intomainfrom
check-build-timestamp-func-exists

Conversation

@tom-pang
Copy link

Summary

  • Query pg_proc to check if build timestamp functions exist before calling them
  • Prevents Postgres from logging ERROR: function does not exist on every scrape
  • Connection errors still propagate correctly (not swallowed)

Test plan

  • Unit tests added for all cases (function exists, doesn't exist, connection error)
  • go test ./... passes

@tom-pang tom-pang requested a review from mble January 26, 2026 12:41
@tom-pang tom-pang merged commit dba7079 into main Jan 26, 2026
2 checks passed
@tom-pang tom-pang deleted the check-build-timestamp-func-exists branch January 26, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants