Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8TGYDO42592 for ; Sat, 29 Sep 2001 12:34:13 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f8TGIAP42829 for pgsql-sql@postgresql.org; Sat, 29 Sep 2001 12:18:10 -0400 (EDT) (envelope-from news) From: "Pat M" X-Newsgroups: comp.databases.postgresql.sql Subject: Function return rows? Date: Sat, 29 Sep 2001 09:17:28 -0700 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 12 Message-ID: <9p4s81$19q9$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 To: pgsql-sql@postgresql.org X-Archive-Number: 200110/8 X-Sequence-Number: 4963 Can I use a function to execute a query and return a row or set of rows? If so, can you point me to some examples or perhaps give me an example of a function that would do roughly the same thing as: select * from mytable where mytable.name ~* 'aname'; I can't seem to find any examples that return rows, just single ints and bools and stuff.