X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 12D5052A80 for ; Fri, 19 Aug 2005 02:38:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70182-04 for ; Fri, 19 Aug 2005 05:38:03 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by svr1.postgresql.org (Postfix) with ESMTP id 930C7529EF for ; Fri, 19 Aug 2005 02:38:03 -0300 (ADT) Received: from localhost (av.hub.org [200.46.204.144]) by hub.org (Postfix) with ESMTP id 69AC2A246C0 for ; Fri, 19 Aug 2005 02:38:03 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70185-07 for ; Fri, 19 Aug 2005 05:38:00 +0000 (GMT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id 826E5A2465F for ; Fri, 19 Aug 2005 02:38:00 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id C9FB734011; Fri, 19 Aug 2005 02:38:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id C5E0D33FBA for ; Fri, 19 Aug 2005 02:38:01 -0300 (ADT) Date: Fri, 19 Aug 2005 02:38:01 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: scrappy@ganymede.hub.org To: pgsql-sql@postgresql.org Subject: pl/PgSQL: Samples doing UPDATEs ... Message-ID: <20050819023618.K1002@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.248 required=5 tests=[AWL=0.198, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/165 X-Sequence-Number: 22393 I have an older PostgreSQL book here, that has chapter on pl/PgSQL in it, but no good samples .... What I'm looking for is a sample of a function that returns # of rows updated, so that I can make a decision based on that ... does anyone know where I could find such (and others, would be great) online? Thanks ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664