Ya, That's what I mean. It turns out I don't need the order by (or at least
shouldn't rely on it to insert the rows in order) so I rewrote the function
without order by.
The example was meant to be a reproducable sample but I screwed up on the column types. Thanks for looking.