pg_copy_to Copy a table to an array Description arraypg_copy_to resourceconnection stringtable_name stringdelimiter stringnull_as pg_copy_to copies a table to an array. It issues COPY TO SQL command internally to retrieve records. The resulting array is returned. It returns &false; on failure. See also pg_copy_from.