Re: create temp table .. on commit delete rows - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: create temp table .. on commit delete rows
Date
Msg-id 20061012190728.GS28647@nasby.net
Whole thread Raw
In response to Re: create temp table .. on commit delete rows  (David Fetter <david@fetter.org>)
Responses Re: create temp table .. on commit delete rows
List pgsql-hackers
On Thu, Oct 12, 2006 at 12:01:12PM -0700, David Fetter wrote:
> On Thu, Oct 12, 2006 at 03:51:39PM +0400, Teodor Sigaev wrote:
> > >You're running in auto-commit, mode.  An implicit commit happens
> > >after this statement.  Which clears the table.  Looks right to me.
> > 
> > Oops, I see
> 
> Should something notice and raise a warning when people create a TEMP
> table and have AUTOCOMMIT on?

Maybe if ON COMMIT is set to DELETE ROWS or DROP...
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: SQL functions, INSERT/UPDATE/DELETE RETURNING, and triggers
Next
From: Andrew Sullivan
Date:
Subject: Re: On status data and summaries