Fix sql-exporter-autoscaling for pg < 16 (#8523)

The lfc_approximate_working_set_size_windows query was failing on pg14
and pg15 with

  pq: subquery in FROM must have an alias

Because aliases in that position became optional only in pg16.

Some context here: https://neondb.slack.com/archives/C04DGM6SMTM/p1721970322601679?thread_ts=1721921122.528849
This commit is contained in:
Em Sharnoff
2024-07-26 07:08:13 -07:00
committed by Stas Kelvich
parent dbcfc01471
commit 3a0ee16ed5

View File

@@ -404,7 +404,7 @@ files:
x::text as duration_seconds,
neon.approximate_working_set_size_seconds(x) as size
from
(select generate_series * 60 as x from generate_series(1, 60));
(select generate_series * 60 as x from generate_series(1, 60)) as t (x);
build: |
# Build cgroup-tools
#