"Hicham G. Elmongui" <elmongui(at)cs(dot)purdue(dot)edu> writes:
> I tried creating the function (from sec 19.3.1). But it gives me the
> following error: "ERROR: type tablename does not exist".
> Any ideas of what i might be doing wrong?
> CREATE FUNCTION use_many_fields(tablename) RETURNS TEXT AS '
The example assumes you already created a table or composite type named
tablename.
regards, tom lane