On Sep 29, 2005, at 1:23 PM, Keary Suska wrote:
You should always finish() every "select" statement handle, or both
DBI and
libpq will leak:
$sth->finish;
after the closing bracket of the while() loop.
No, you don't need to call finish() if you fall off the end of a
while $sth->fetchrow() loop. DBI already knows you're done with it.
You only call finish if you break out of the loop. Ask Tim. He told
me personally :-)
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster