Upgrade PostgreSQL from 17 to 18 on Ubuntu 26.04

Howto guide for upgrading PostgreSQL from version 17 to 18 on Ubuntu, after its upgrade from version 25.10 (Questing Quokka) to 26.04 (Resolute Raccoon).