Re: [HACKERS] Reconstructing Insert queries with indirection

2012-03-22 Thread Ashutosh Bapat
On Wed, Mar 21, 2012 at 10:58 PM, Tom Lane t...@sss.pgh.pa.us wrote: Ashutosh Bapat ashutosh.ba...@enterprisedb.com 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

[HACKERS] Reconstructing Insert queries with indirection

2012-03-21 Thread Ashutosh Bapat
Hi All, 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 INSERT query, we parse the query

Re: [HACKERS] Reconstructing Insert queries with indirection

2012-03-21 Thread Tom Lane
Ashutosh Bapat ashutosh.ba...@enterprisedb.com 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);