On Wed, 2002-08-07 at 00:10, Tom Lane wrote:
> Rod Taylor <rbt(at)zort(dot)ca> writes:
> > + Datum
> > + current_database(PG_FUNCTION_ARGS)
> > + {
> > + PG_RETURN_NAME(DatabaseName);
> > }
>
> DatabaseName is not actually a NAME, only a C string. You need a palloc
> and a namestrcpy in there.
Hmm.. Oops.