On Wed, Sep 10, 2008 at 5:26 PM, Alvaro Herrera <alvherre@xxxxxxxxxxxxxxxxx> wrote: > Hmm, maybe > > select email, backend from emails, backends where email.id = 1 and > backend.id = 1; > ? > > You don't need a plpgsql function for this ... Ops, forget to mention that this function is not so simple and use some plpgsql features. Here is one of them: http://dpaste.com/hold/77192/ -- regards, Artis Caune <----. CCNA <----|==================== <----' didii FreeBSD