Did we come to any conclusion about whether to accept Gavin Sherry's
CREATE OR REPLACE FUNCTION patch?
http://fts.postgresql.org/db/mw/msg.html?mid=1035792
AFAIR, the score was that I liked it, Bruce didn't, and no one else
had expressed an opinion.
The patch itself needs a little bit of cleanup I think, but I'm willing
to fix and apply it if there's a consensus that we want the feature.
regards, tom lane