Re: [BUGS] BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types

2012-12-22 Thread Andres Freund
On 2012-12-20 22:50:54 +0100, Andres Freund wrote: > On 2012-12-20 21:17:04 +0100, Andres Freund wrote: > > On 2012-12-20 12:40:44 +, no...@nix.hu wrote: > > > The following bug has been logged on the website: > > > > > > Bug reference: 7763 > > > Logged by: Norbert Buchmuller > >

Re: [BUGS] BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types

2012-12-22 Thread Tom Lane
Andres Freund writes: > On 2012-12-20 22:50:54 +0100, Andres Freund wrote: >> Ok, here are two patches: >> * Add a cooked_expr member to IndexElem and use it for transformed >> expressions, including filling it directly in generateClonedIndexStmt. >> >> * Follow the pattern set by other routines

Re: [BUGS] BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types

2012-12-22 Thread Andres Freund
Hi, On 2012-12-22 16:11:47 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2012-12-20 22:50:54 +0100, Andres Freund wrote: > >> Ok, here are two patches: > >> * Add a cooked_expr member to IndexElem and use it for transformed > >> expressions, including filling it directly in generateCloned