Hi All, Anyone know off hand how to direct query output to a file from within a plpgsql function? I'm trying to use PERFORM ''\\o filename'', then SELECT..., but I get a message saying "ERROR: SELECT query has no destination for result data". Any tips would be greatly appreciated. -Meghan