pg_meta_data() returns table definition for
table_name as an array.
Warning
This function is
EXPERIMENTAL. The behaviour of this function, the
name of this function, and anything else documented about this
function may change without notice in a future release of PHP.
Use this function at your own risk.
Parameters
connection
PostgreSQL database connection resource.
table_name
The name of the table.
Return Values
An array of the table definition, or FALSE on error.
Examples
Example 1. Getting table metadata
<?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect");