Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Date
Msg-id 162867790707030301s42e7f5adq1f58f8320e9c4ad5@mail.gmail.com
Whole thread Raw
In response to Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
> > Global temp table can be created from template only when is used. It's
> > has not negative efect on app which doesn't use it. The benefit of
> > g.t.t. is simplifycation of stored procedures.
>
> And if it's used in 200 txns/s? Imagine the earlier poster who was looking for
> a way to display the count of records matching a search followed by the ten
> records on the page without re-executing the search.
>

I wrote about comparation global temp tables and current temp tables.

Counting of result's records is problem. I know. It's incompleteness
of current cursor's implementation. Every cursor can be materialised
and then can be counted. We need operation OPEN which matarialise
cursor and returns real row_count.

Regards
Pavel


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Next
From: Gregory Stark
Date:
Subject: Re: Proposal: In-Place upgrade concept