Re: [HACKERS] Non-standard feature request

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: [HACKERS] Non-standard feature request
Дата
Msg-id Pine.LNX.4.21.0206280146500.23392-101000@linuxworld.com.au
обсуждение исходный текст
Ответы Re: [HACKERS] Non-standard feature request  (Gavin Sherry <swm@linuxworld.com.au>)
Список pgsql-patches
On Fri, 14 Jun 2002, Gavin Sherry wrote:

> On Thu, 13 Jun 2002, Mike Mascari wrote:
>
> >
> > CREATE TEMPORARY TABLE
> > ...
> > ON COMMIT DROP;
> >
> > pseudo-compatible with the SQL-standard of:
> >
> > ON COMMIT { DELETE | PRESERVE } ROWS;
> >
> > so one day PostgreSQL's grammar would look like:
> >
> > ...
> > ON COMMIT { DROP | { DELETE | PRESERVE } ROWS };
>
> I think this is a pretty useful feature. Shouldn't require too much
> work. A new relkind or a bool in TempTable and a little code in
> AtEOXact_temp_relations() to heap_drop_with_catalog() the registered temp
> table.
>
> Anyone else keen for this feature?

Attached is a patch implementing this. The patch is against 7.2.1
source. The grammar introduced is of the form:

    CREATE TEMP TABLE ... ON COMMIT DROP;

Is this a desirable feature? Seems pretty useful to me.

Gavin


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: show() function
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: [HACKERS] Non-standard feature request