pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Jaime Casanova <systemguards@gmail.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jim Nasby <decibel@decibel.org>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
Date: Tue, 03 Jul 2007 02:59:43 +0100
Message-ID: <87d4za5jsg.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <c2d9e70e0707021846g4e75ff27l500e158339d62018@mail.gmail.com>
References: <162867790707011431u71e53543x19e64e5bb160b124@mail.gmail.com>
	<17505.1183326406@sss.pgh.pa.us>
	<19689F96-2FE1-4343-BE86-94317AEB0C57@decibel.org>
	<19728.1183394601@sss.pgh.pa.us>
	<20070703004634.GB4757@alvh.no-ip.org>
	<c2d9e70e0707021846g4e75ff27l500e158339d62018@mail.gmail.com>


"Jaime Casanova" <systemguards@gmail.com> writes:

> while not just a new rekind indicating this is a template and not and
> actual table. and using that template for creating the actual tables?

For precisely the reason stated upthread. That would mean creating and
deleting catalog entries for every transaction. Imagine a busy OLTP system
running hundreds of transactions per second trying to use a temporary table
for intermediate results. Mixing DDL and DML is just as bad an idea behind the
scenes as it is for users.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com




view thread (25+ messages)  latest in thread

Message-ID: <87d4za5jsg.fsf@oxford.xeocode.com>
Permalink:  ../87d4za5jsg.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87d4za5jsg.fsf@oxford.xeocode.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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: stark@enterprisedb.com, systemguards@gmail.com, alvherre@commandprompt.com, tgl@sss.pgh.pa.us, decibel@decibel.org, pavel.stehule@gmail.com
  Subject: Re: what is difference between LOCAL and GLOBAL TEMP TABLES in PostgreSQL
  In-Reply-To: <87d4za5jsg.fsf@oxford.xeocode.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