[orm-devel] No such attribute or function 'oid'
Ross J. Reedstrom
orm-devel@mailman.tux4web.de
Mon, 13 Jan 2003 13:46:24 -0600
On Mon, Jan 13, 2003 at 01:35:32PM -0600, Ross J. Reedstrom wrote:
> On Mon, Jan 13, 2003 at 05:44:20PM +0100, Diedrich Vorberg wrote:
> > Hi Ross,
> >
> > >Subject: No such attribute or function 'oid'
> > Did the patch throw this exception?
>
> Didn't try it. BTW, I wasn't the original poster on this, you know. That
> was Eric Walstad.
>
> > >>... Stuff about gpsql and oids
> >
> > The reason I kept the special treatment of oids is rather
> > 'traditional' than practical: oids and the idea of an "object
> > relational database" inspired orm in the first place. Also the
> > predecessor of orm depended on oids entirely (which turned out to be
> > one of my worst ideas for it, because you couldn't easily backup :-).
> > I wanted to make orm downward-compatible.
>
> Well ,the problem is that right now oids are deprecated, but thier correct
> replacements are really ready. For example, the wire protocol actually
------------------^not
Dang, I'm having trouble with dropped negations.
> provides the OID of a newly inserted tuple, for free. Getting anything
> else requires an extra round trip to the DB. This is an extra pain when
> the primary key is a backend generated serial.
Ross