Skip to content

Conversation

@boosterKRD
Copy link
Contributor

@boosterKRD boosterKRD commented Jul 11, 2025

Refactor pg_stat_statements queries for PostgreSQL < 13
Renamed and fixed queries that incorrectly multiplied time values by 1000.
Since total_time, plan_time, and related fields are already in milliseconds, no multiplication is needed.
Renamed files to *_12.sql to reflect compatibility with PostgreSQL versions prior to 13.

Fixes #11

@Melkij
Copy link
Collaborator

Melkij commented Jul 11, 2025

should we actually keep them? I think it's time to just delete them.

@dataegret dataegret deleted a comment from podpolkovnick Jul 11, 2025
@hydrobiont
Copy link
Member

I would rather suggest having something like morgue deb repo for them:
separate folder with scripts for older versions (people still use even
older versions and we need those old things from time to time)

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.

sql/query_stat_io_time.sql

4 participants