Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, pdopgsql is not absent in PHP CLI. The PHP CLI version shipped with most distributions typically includes the pdopgsql extension by default. If you're unsure about the presence of pdo_pgsql in your PHP CLI installation, you can check using the following command:

php -m | grep pdo_pgsql

This command lists all the installed PHP extensions on your system and pipes the output to the grep command to filter out only the pdopgsql extension. If the output shows pdopgsql, then it's installed and loaded in your PHP CLI.