pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-sql@postgresql.org
Subject: Three Unrelated Questions
Date: Tue, 26 Sep 2000 11:42:55 -0700
Message-ID: <web-1092692@davinci.ethosmedia.com> (raw)
In-Reply-To: <39D0DFC0.A4C00EFA@ipinc.com>

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



Message-ID: <web-1092692@davinci.ethosmedia.com>
Permalink:  ../web-1092692@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1092692@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: Three Unrelated Questions
  In-Reply-To: <web-1092692@davinci.ethosmedia.com>
  References: <39D0DFC0.A4C00EFA@ipinc.com> <web-1092692@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox