Re: Variable array sizes with PQexecParams

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Garcia, Joshua" <Joshua(dot)Garcia(at)xerox(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Variable array sizes with PQexecParams
Date: 2006-06-26 21:04:48
Message-ID: 22935.1151355888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Garcia, Joshua" <Joshua(dot)Garcia(at)xerox(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message LLC 2006-06-26 22:01:32 Re: using vars in scripts
Previous Message Garcia, Joshua 2006-06-26 20:39:56 Re: Variable array sizes with PQexecParams