Skip site navigation (1) Skip section navigation (2)

Re: Incremental results from libpq

From: "Goulet, Dick" <DGoulet(at)vicr(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>,"Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"Peter Eisentraut" <peter_e(at)gmx(dot)net>,<pgsql-interfaces(at)postgresql(dot)org>,"Scott Lamb" <slamb(at)slamb(dot)org>
Subject: Re: Incremental results from libpq
Date: 2005-11-17 14:29:17
Message-ID: 4001DEAF7DF9BD498B58B45051FBEA6502EF5628@25exch1.vicorpower.vicr.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
Alvaro,

	You are quite correct, which is functionally the only
difference.  Personally I don't think that really amounts to "a hill of
beans".  The functionality is the same, even if the syntax is a touch
different.  Course, I didn't get a chance to tinker with this, but in
Oracle a global temp table can have indexes and constraints.  Is the
same true in Postgresql??  I've found it to be a performance improver
where your loading the temp table with thousands of rows.

-----Original Message-----
From: Alvaro Herrera [mailto:alvherre(at)commandprompt(dot)com] 
Sent: Wednesday, November 16, 2005 7:51 PM
To: Bruce Momjian
Cc: Goulet, Dick; Tom Lane; Peter Eisentraut;
pgsql-interfaces(at)postgresql(dot)org; Scott Lamb
Subject: Re: [INTERFACES] Incremental results from libpq

Bruce Momjian wrote:
> Goulet, Dick wrote:
>
> > 	If I may, one item that would be of extreme use to our location
> > would be global temporary tables.  These have existed since Oracle
9.0.
> > They are defined once and then used by clients as needed.  Each
session
> > is ignorant of the data of any other session and once you disconnect
the
> > data from the session disappears.  Truly a real temporary table.
> 
> How is it better than what we have now?

Global temporary tables are defined only once (not once per session),
and the schema (definition) is known to all sessions.  Only the content
is private to each session.

At least that's what I remember since the last time I read the spec on
it ...

-- 
Alvaro Herrera
http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Responses

pgsql-interfaces by date

Next:From: Goulet, DickDate: 2005-11-17 16:04:11
Subject: Re: Incremental results from libpq
Previous:From: Tom LaneDate: 2005-11-17 01:04:23
Subject: Re: Incremental results from libpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group