Re: fun fact about temp tables - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: fun fact about temp tables
Date
Msg-id 20160805161814.GM18305@crankycanuck.ca
Whole thread Raw
In response to Re: fun fact about temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
Responses Re: fun fact about temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
List pgsql-general
On Fri, Aug 05, 2016 at 06:02:08PM +0300, Grigory Smolkin wrote:
> But it`s temporary table so it`s equal to saying 'I don`t care about this
> data' and I can get 'out of disk space' regardless of using temporary
> tables.
>
> What are we winning here?

Surely, that the transaction operates in a predictable way?  A temp
table doesn't say, "I don't care about this data," it says, "I don't
care about this data over the long haul."  I've had lots of data go
through temp tables that I really really wanted to get into some other
place later, and it'd suck if the transaction failed half way through
because it turns out there's nowhere to put the data I've just staged.

A

--
Andrew Sullivan
ajs@crankycanuck.ca


pgsql-general by date:

Previous
From: Grigory Smolkin
Date:
Subject: Re: fun fact about temp tables
Next
From: Grigory Smolkin
Date:
Subject: Re: fun fact about temp tables