DEV Community

Cover image for ๐Ÿ˜ PostgreSQL EoLs as a table โณ
adriens
adriens

Posted on

๐Ÿ˜ PostgreSQL EoLs as a table โณ

๐Ÿ˜ About

When you want to know about PostgreSQL End of Life (EoLs), you usually start with a Google Search :

Image description

๐Ÿ“… PostgreSQL Versioning Policy

So you get to the PostgreSQL Versioning Policy :

Image description

โ˜๏ธ ... but you can't really interact/play with the underlying data ๐Ÿ˜“

โณ endoflife.date

If you go to the dedicated endoflife.date page

Image description

๐Ÿ’ก... things are getting much much more interesting... especially when you notice the api option ๐Ÿค”

๐ŸŽฏ What ya gonna do

In this post, you'll see how to load PostgresSQL EoLs data into a regular table, (almost) only from psql commands.

๐Ÿงฐ Tools

All you need here is:

  • ๐Ÿ˜ A PostgreSQL instance
  • โ›๏ธ httpie (or curl, ... or wget)
  • ๐Ÿช› jq
  • โŒจ๏ธ Any (decent) terminal

๐ŸŒˆ Teaser ๐Ÿฑ

At the end of this post, you'll be able to get PostgreSQL EoLs this way:

๐ŸŽฌ Demo

๐Ÿ”– Resources

GitHub logo adriens / endoflife.date-nested

A collection of resources to load Product EoL in itself

โžฐ About

endoflife.date-nested is a collection of resources to load Product EoL in itself, thanks to endoflife.date.

You can have a global overview by having a loog at the dedicated endoflife.date Series' Articles

๐Ÿค“ Why ?

  • For fun
  • To learn new databases (and varous ways of storing data)
  • To learn efficient patterns around API data loading
  • To manage technical debt in various fun (and hopefuly useful) ways

๐Ÿ›ค๏ธ Roadmap

๐Ÿ“‘ More about endoflife.date




๐ŸŽซ Related contents

๐Ÿ˜ Please add a boolean "Supported" flag for PostgreSQL โœ”๏ธ #2380

โ” About

Is your feature request related to a problem? Please describe.

Actually, /api/postgresql.json :

[
  {
    "cycle": "15",
    "eol": "2027-11-11",
    "latest": "15.1",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2022-10-10",
    "lts": false
  },
  {
    "cycle": "14",
    "eol": "2026-09-30",
    "latest": "14.6",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2021-09-27",
    "lts": false
  },
  {
    "cycle": "13",
    "eol": "2025-11-13",
    "latest": "13.9",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2020-09-21",
    "lts": false
  },
  {
    "cycle": "12",
    "eol": "2024-11-14",
    "latest": "12.13",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2019-09-30",
    "lts": false
  },
  {
    "cycle": "11",
    "eol": "2023-11-09",
    "latest": "11.18",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2018-10-15",
    "lts": false
  },
  {
    "cycle": "10",
    "eol": "2022-11-10",
    "latest": "10.23",
    "latestReleaseDate": "2022-11-07",
    "releaseDate": "2017-10-02",
    "lts": false
  },
...
]
Enter fullscreen mode Exit fullscreen mode

does not give as much information as the official page, especially the Supported boolean column :

image

๐Ÿ’ก The solution you'd like

I would like to get a ready to use boolean attribute that would tell me is the version is supported or not... I mean without any client side computation.

Alternatives you've considered

  • Client side compuation

Top comments (1)

Collapse
 
adriens profile image
adriens