Re: create temp table .. on commit delete rows

От: Bruce Momjian
Тема: Re: create temp table .. on commit delete rows
Дата: ,
Msg-id: 200610122129.k9CLTF605498@momjian.us
(см: обсуждение, исходный текст)
Ответ на: Re: create temp table .. on commit delete rows  (David Fetter)
Ответы: Re: create temp table .. on commit delete rows  (Tom Lane)
Список: pgsql-hackers

Скрыть дерево обсуждения

create temp table .. on commit delete rows  (Teodor Sigaev, )
 Re: create temp table .. on commit delete rows  (Heikki Linnakangas, )
  Re: create temp table .. on commit delete rows  (Teodor Sigaev, )
   Re: create temp table .. on commit delete rows  (David Fetter, )
    Re: create temp table .. on commit delete rows  ("Jim C. Nasby", )
     Re: create temp table .. on commit delete rows  (David Fetter, )
      Re: create temp table .. on commit delete rows  (Bruce Momjian, )
       Re: create temp table .. on commit delete rows  (Tom Lane, )
        Re: create temp table .. on commit delete rows  (Bruce Momjian, )

David Fetter wrote:
> On Thu, Oct 12, 2006 at 02:07:28PM -0500, Jim C. Nasby wrote:
> > 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...
> 
> Sounds good :)

Added to TODO:
       o Issue a notice if CREATE TABLE ... ON COMMIT { DELETE ROWS |         DROP } is issued outside a
multi-statementtransaction
 

--  Bruce Momjian    EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +



В списке pgsql-hackers по дате сообщения:

От: "Andrew Dunstan"
Дата:
Сообщение: Re: Hints (Was: Index Tuning Features)
От: Christopher Browne
Дата:
Сообщение: Re: [PERFORM] Hints proposal