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

From Alvaro Herrera
Subject Re: CREATE TABLE LIKE INCLUDING INDEXES support
Date
Msg-id 20070523134039.GB4642@alvh.no-ip.org
Whole thread Raw
In response to Re: CREATE TABLE LIKE INCLUDING INDEXES support  (NikhilS <nikkhils@gmail.com>)
List pgsql-patches
NikhilS escribió:

> Sorry for the barrage of emails. But as I looked closely at the current
> patch there are only 2 fields  (accessMethod and tableSpace) in IndexStmt
> structure that we populate by doing the conversion from OIDs to name. For
> the other fields, the current transformations will remain.
>
> If so, I think we can introduce 2 Oid fields in the IndexStmt structure and
> store the Oids there. In DefineIndex we can use these Oids if they are not
> invalid.

Sounds reasonable.  This is what we do for example in VacuumStmt.  Make
sure that the OIDs are set to Invalid in the parser.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-patches by date:

Previous
From: NikhilS
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] msvc, build and install with cygwin in the PATH