When Auto minor version upgrade is on, RDS upgrades the DB instance to a newer minor version during the maintenance window, a weekly 30-minute period that you choose. RDS upgrades the instance automatically only when both of the following are true:
rdspg-lab-db was created with this option turned off, so the version stays at 17.9 until you upgrade it yourself in the next step.
Open the Amazon RDS console, choose Databases, then choose rdspg-lab-db:

Pending maintenance lists updates that RDS will apply in the next maintenance window, such as operating system patches or a required minor version upgrade. You can apply them immediately with Apply now.
You can run the AWS CLI commands in this workshop from AWS CloudShell. CloudShell already has your console credentials and costs nothing.