Re: Non-standard feature request - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: Non-standard feature request
Date
Msg-id Pine.LNX.4.21.0206141833100.876-100000@linuxworld.com.au
Whole thread Raw
In response to Non-standard feature request  (Mike Mascari <mascarm@mascari.com>)
Responses Re: Non-standard feature request  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
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? 

Gavin



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: ATTN: Tom Lane
Next
From: "Dave Page"
Date:
Subject: Language Comments