Historical version. PostgreSQL 7.1 has reached end of support. See the current manual.
pg_select
Synopsis
pg_select dbHandle queryString arrayVar queryProcedure
Description
pg_select submits a SELECT query to the Postgres backend, and executes a given chunk of code for each tuple in the result. The queryString must be a SELECT statement. Anything else returns an error. The arrayVar variable is an array name used in the loop. For each tuple, arrayVar is filled in with the tuple field values, using the field names as the array indexes. Then the queryProcedure is executed.
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.