Commit e7f5594
committed
e1: highlight outdated extension versions (fix logic)
It is incorrect to compare `pg_available_extensions.installed_version`
to `pg_extension.extversion`, it should be compared to `pg_available_extensions.default_version`.
It led to incorrectly working `actuality` flag – at all times it was empty.
This commit fixes it. Also, `available_extension` column is removed – its logic was wrong from the very beginning.
Example:
- before fix:
```
name | installed_version | default_version | available_version | actuality
--------------------+-------------------+-----------------+-------------------+-----------
pg_stat_statements | 1.2 | 1.4 | 1.2 |
plpgsql | 1.0 | 1.0 | 1.0 |
(2 rows)
```
- after fix:
```
name | installed_version | default_version | actuality
--------------------+-------------------+-----------------+-----------
pg_stat_statements | 1.2 | 1.4 | OLD
plpgsql | 1.0 | 1.0 |
(2 rows)
```1 parent 26f7b54 commit e7f5594
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
0 commit comments