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

Re: CREATE TABLE LIKE INCLUDING INDEXES support

From: NikhilS <nikkhils(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Neil Conway" <neilc(at)samurai(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Trevor Hardcastle" <chizu(at)spicious(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Date: 2007-06-03 14:02:58
Message-ID: d3c4af540706030702o47fd9745i67f13f78e689d7a8@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Hi,

On 6/3/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Neil Conway <neilc(at)samurai(dot)com> writes:
> > Attached is a revised version of this patch.
>
> This still seems to fundamentally misunderstand the difference between
> an index and a constraint.  IMHO it should not be examining pg_index
> (or specifically, the index Relations) at all.



But as you had mentioned earlier, if we look at index entries as part of the
implementation of "unique" or "primary key" pg_constraint entries, then
examining pg_index is required, right?

Anyways, this patch and the functionality introduced herein will be useful
in the "CREATE .. INCLUDING INDEXES" case too.

Regards,
Nikhils

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

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-06-03 14:48:21
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Previous:From: NikhilSDate: 2007-06-03 13:57:15
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support

pgsql-patches by date

Next:From: Tom LaneDate: 2007-06-03 14:48:21
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Previous:From: NikhilSDate: 2007-06-03 13:57:15
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group