Re: [HACKERS] Reconstructing Insert queries with indirection

2012-03-21 Thread Ashutosh Bapat
On Wed, Mar 21, 2012 at 10:58 PM, Tom Lane wrote: > Ashutosh Bapat writes: > > Consider following sequence of commands > > > create type complex as (r float8, i float8); > > create type quad as (c1 complex, c2 complex); > > create temp table quadtable(f1 int, q quad); > > > insert into quadtable

Re: [HACKERS] Reconstructing Insert queries with indirection

2012-03-21 Thread Tom Lane
Ashutosh Bapat writes: > Consider following sequence of commands > create type complex as (r float8, i float8); > create type quad as (c1 complex, c2 complex); > create temp table quadtable(f1 int, q quad); > insert into quadtable (f1, q.c1.r, q.c2.i) values(44,55,66); > While parsing the INSER