Re: Missing Column names with multi-insert

2019-02-18 Thread Andrew Dunstan
On 2/18/19 2:34 PM, Liz Frost wrote: > Hello all, > > I'm working on a foreign data wrapper that uses INSERT, and I noticed > some odd behaviour. If I insert just one row, the > TupleDesc->attr[0]->attname.data has the column names in it. However, > in a multi-row string, all those are empty stri

Re: Missing Column names with multi-insert

2019-02-18 Thread Tom Lane
Liz Frost writes: > I'm working on a foreign data wrapper that uses INSERT, and I noticed some > odd behaviour. If I insert just one row, the > TupleDesc->attr[0]->attname.data has the column names in it. However, in a > multi-row string, all those are empty strings: There's not really any expect

Re: Missing Column names with multi-insert

2019-02-18 Thread Andres Freund
Hi, On 2019-02-18 14:34:43 -0500, Liz Frost wrote: > I'm working on a foreign data wrapper that uses INSERT, and I noticed some > odd behaviour. If I insert just one row, the > TupleDesc->attr[0]->attname.data has the column names in it. However, in a > multi-row string, all those are empty string