a set of routines for effective debuging plpgsql functions