Example of a function taking a composite type should show how to call it.
authorTom Lane
Sat, 24 Jan 2004 22:05:08 +0000 (22:05 +0000)
committerTom Lane
Sat, 24 Jan 2004 22:05:08 +0000 (22:05 +0000)
doc/src/sgml/plpgsql.sgml

index 30f7f3c4802f27df538aa23b19662e37b2d623bd..0e7f7ad5d0a0d591bb04bb77b48fdc5fbfb1d884 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -685,6 +685,8 @@ BEGIN
     RETURN in_t.f1 || use_t.f3 || in_t.f5 || use_t.f7;
 END;
 ' LANGUAGE plpgsql;
+
+SELECT use_two_tables(t.*) FROM tablename t WHERE ... ;