Home > PHP > Function > PostgreSQL > pg_last_notice()

pg_last_notice()

pg_last_notice - Returns the last notice message from PostgreSQL server

Syntax

string pg_last_notice (resource $connection)

Arguments

  • connection - PostgreSQL database connection resource.

Description

pg_last_notice() returns the last notice message from the PostgreSQL server on the specified connection. The PostgreSQL server sends notice messages in several cases, for instance when creating a SERIALcolumn in a table.

Version

PHP 4.0.6, 5

Return value

A string containing the last notice on the given connection, or FALSE on error.