Skip site navigation (1) Skip section navigation (2)

Re: PQexecParams and types

From: Czuczy Gergely <phoemix(at)harmless(dot)hu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: PQexecParams and types
Date: 2004-02-03 14:56:06
Message-ID: Pine.LNX.4.44.0402031555080.30492-100000@localhost (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

to leave it unspecified what value should I set to the paramTypes array?
and could you insert this answer to to docs, it could be useful


Gergely Czuczy
mailto: phoemix(at)harmless(dot)hu

The point is, that geeks are not necessarily the outcasts
society often believes they are. The fact is that society
isn't cool enough to be included in our activities.

On Tue, 3 Feb 2004, Tom Lane wrote:

> Czuczy Gergely <phoemix(at)harmless(dot)hu> writes:
> > i've read in the docs to use the proper indexes both types must match in
> > the where clause, to achive this the user can simply put a string into the
> > side of the equation mark and pgsql will convert it automaticly. my
> > question is, when I'm using PQexecParams, should I give all the values as
> > a string, and it will be converted, or I have to figure out the type of
> > the given field somehow?
> You should leave the parameter types unspecified.  Their types will be
> resolved in much the same way that a quoted literal is handled.
> 			regards, tom lane

In response to


pgsql-performance by date

Next:From: Tom LaneDate: 2004-02-03 15:10:29
Subject: Re: COPY from question
Previous:From: Tom LaneDate: 2004-02-03 14:53:13
Subject: Re: PQexecParams and types

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group