This is an example code for getting PostgreSQL metadata from its system tables. I've seen several metadata functions that are not using PostgreSQL system tables, so I posted
this. This function can get metadata MUCH faster than using many pg_Field*().
Tired with adding quotes around vars for SQL query? Do you want to make sure supplied values are valid for fields? Do you want to use database default value, if user send no
values and default value is defined for the field? Then this function might be useful.
If you are sure that GET/POST/COOKIE values are not modified by user, you may be able to reduce lots of overhead for checking values. This function provide means to make sure
GET/POST/COOKIE values that are set by PHP programmer are not modified by users.
probably useful people who are learning regex also.