Re: Variable array sizes with PQexecParams - Mailing list pgsql-novice

From Tom Lane
Subject Re: Variable array sizes with PQexecParams
Date
Msg-id 22935.1151355888@sss.pgh.pa.us
Whole thread Raw
In response to Re: Variable array sizes with PQexecParams  ("Garcia, Joshua" <Joshua.Garcia@xerox.com>)
List pgsql-novice
"Garcia, Joshua" <Joshua.Garcia@xerox.com> writes:
> If I want the number of elements in that array to vary with each
> execution, then I'd have to use the $1="'{foo,bar}'" method right?

AFAICS you could do it either way --- the pain about balances out,
once you consider the effort involved in doing the quoting correctly.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Garcia, Joshua"
Date:
Subject: Re: Variable array sizes with PQexecParams
Next
From:
Date:
Subject: Re: Table Merge Successful, Primary Keys Missing