Handle comment append from php. Improve plpgsql flood control