Elijah Stone <elro...@elronnd.net> writes: > I want to execute a query like this:
> PQexecParams("insert into sometable values($1, ...);", paramValues[0] = > serialize some record, ...) > However this fails in coerce_record_to_complex(), because it receives a > node of type Param, but it can only handle RowExpr and Var. You probably would have better results from specifying the composite type explicitly in the query: PQexecParams("insert into sometable values($1::composite, ...);", I gather from the complaint that you're currently doing something that causes the Param to be typed as a generic "record", which is problematic since the record's details are not available from anyplace. But if you cast it directly to a named composite type, that should work. If it still doesn't work, please provide a more concrete example. regards, tom lane