pg_last_notice

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Returns the last notice message from PostgreSQL server
<?php pg_last_notice(PgSql\Connection $connection, int $mode = PGSQL_NOTICE_LAST): array|string|bool