Clarification: PostgreSQL setup for Nextcloud - extension pdo_pgsql or pgsql?

When trying to optimize my (already long-running, i.e. years old) configuration, I noticed something strange about the PostgreSQL setup:

According to the docs, both the pdo_pgsql and the pgsql PHP extensions are to be loaded.

I searched a bit and seemingly these are two different extensions which have nothing to do with each other. In my setup (custom-built php-fpm 8.x container) I don’t even include the pgsql-extension, only the pdo_pgsql-extension - and Nextcloud works nevertheless.

The php.ini entries for [PostgreSQL] (pgsql.*) according to the Nextcloud docs are, however, not even loaded (not shown by php -i) and therefore seem completely useless?!? (I tried building my PHP-FPM image with pgsql extension included, but that made no difference.)

Am I misunderstanding something, or are the official docs wrong?