Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by hub.org (8.10.1/8.10.1) with ESMTP id e8QIguN60243 for ; Tue, 26 Sep 2000 14:42:56 -0400 (EDT) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.3) with HTTP id 1092692 for ; Tue, 26 Sep 2000 11:42:55 -0700 From: "Josh Berkus" Subject: Three Unrelated Questions To: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.3 Date: Tue, 26 Sep 2000 11:42:55 -0700 Message-ID: In-Reply-To: <39D0DFC0.A4C00EFA@ipinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200009/215 Folks, Here's three unrelated questions which have been bothering me: 1. What TYPE does one use in a Create Function statement to return a full dataset? (Create Function XXX AS VIEW? Create Function XXX AS TABLE?) 2. The Curval(), Setval() and Nextval() functions allow one to easily manage SERIAL values for multi-table updates. Can someone give me an easy way, within a function, to grab the OID returned by the INSERT statement? 3. I seem to remember reading somewhere some bitwise operators for PGSQL. But I can't find them in the documentation now. Was I mistaken? Do we just use modulo instead? Thanks for any advice! -Josh Berkus