Re: CREATE TABLE LIKE INCLUDING INDEXES support - Mailing list pgsql-patches

From Gregory Stark
Subject Re: CREATE TABLE LIKE INCLUDING INDEXES support
Date
Msg-id 87lkda6q0m.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: CREATE TABLE LIKE INCLUDING INDEXES support  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-patches
"Jim C. Nasby" <decibel@decibel.org> writes:

> On Fri, Jul 20, 2007 at 12:40:46PM +0100, Gregory Stark wrote:
>
>> One of the main use cases I envision is wanting to create new partitions
>> suitable for being added to a partitioned table.
>
> Except that's normally done with CREATE TABLE INHERITS, which seems
> cleaner to me. I think the patch would be more useful if it added
> support for INHERITS, but I don't object to it as-is.

Well there are two different approaches to creating a new partition. For some
use cases you want to create a new empty partition directly in the table and
start using it right away. For other use cases you want to create a table into
which you need to load data, possibly even massage the data with updates and
deletes or additional inserts, then add the partition with the data all ready
directly into the master table.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


pgsql-patches by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Next
From: "Simon Riggs"
Date:
Subject: Re: Updated bitmap index patch