Re: [HACKERS] CREATE TEMP TABLE .... ON COMMIT

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: [HACKERS] CREATE TEMP TABLE .... ON COMMIT
Дата
Msg-id Pine.LNX.4.21.0208271752050.11183-102000@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: [HACKERS] CREATE TEMP TABLE .... ON COMMIT  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [HACKERS] CREATE TEMP TABLE .... ON COMMIT  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Revised patch is attached.

Passes all regression tests relating to temp tables. (I am getting
regression test issues with privileges.sql, rules.sql, conversion.sql).

Gavin

On Tue, 27 Aug 2002, Bruce Momjian wrote:

>
> Gavin, how are you doing with this.  As I remember, the only remaining
> issue was where to store the 'drop on commit' information in the
> backend.  If that is all there is, we can come up with a solution.
>
> ---------------------------------------------------------------------------
>
> Gavin Sherry wrote:
> > On Fri, 9 Aug 2002, Tom Lane wrote:
> >
> > > Gavin Sherry <swm@linuxworld.com.au> writes:
> > > > template1=# create temp table a (a int) on commit drop;
> > > > ERROR:  You must be inside a transaction to use ON COMMIT
> > >
> > > Surely that's only for ON COMMIT DROP, if you intend to offer the
> > > others?
> >
> > I should have provided details of this in the email. SQL99 details the
> > baviour as follows:
> >
> > If TEMPORARY is specified and ON COMMIT is omitted, then ON COMMIT
> > DELETE ROWS is implicit
> >
> > This might give users a bit of a surprise so the effective behaviour is ON
> > COMMIT PRESERVE ROWS.
> >
> > As for your question (and, perhaps, SQL99) I don't seen how it makes any
> > sense to specify ON COMMIT outside of a transaction block.
> >
> > >
> > >             regards, tom lane
> > >
> >
> > Gavin
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
> >
>
>

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: minor auth code cleanup
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [Fwd: Re: libpgtcl modifications]