I'm trying to write a function that takes a text input and returns
a text output. I can get this to work. The problem is that I want
to return NULL when the input string doesn't match the criteria I
desire. Unfortunately, returning NULL seems to crash the backend.
i.e. if I did
text * andytest ( text * str )
The backend would quit unexpectantly when I ran
or select andytest(NULL);
Obviously, there must be some way to create a NULL text * return
variable, but I haven't been able to find it. I've looked at all
the code I've been able to find to no avail.