Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Inheritance, CREATE TABLE LIKE, and partitioned tables


  • From: Greg Stark <gsstark(at)mit(dot)edu>
  • To: elein <elein(at)varlena(dot)com>
  • Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: Inheritance, CREATE TABLE LIKE, and partitioned tables
  • Date: 26 Jun 2006 17:03:54 -0400
  • Message-id: <87y7vjwrwl(dot)fsf(at)stark(dot)xeocode(dot)com>

elein <elein(at)varlena(dot)com> writes:

> People will turn around and immediately as for create table like without us
> making the assumptions it wanted all of the extras that come with inheritance.
> COPY is a copy of the table, not additional functionality.  The added flexibility
> of adding only what is necessary makes more sense than going in to guess
> what was added and removing it later if it is not needed.
> 
> This does not preclude adding a copy table like (with extras) though if you must.

I'm not too sure what you're saying here. But just to be clear, the spec
specifies what CREATE TABLE LIKE does and does not copy. Any behaviour
different from the spec would have to be explicitly requested with an optional
clause.

-- 
greg




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group