Extended query protocol and exact types matches. - Mailing list pgsql-general

From Dmitriy Igrishin
Subject Extended query protocol and exact types matches.
Date
Msg-id AANLkTikjRo4Mik19xLSzVCZ4jDdsvvshRfX1wsWCx4bd@mail.gmail.com
Whole thread Raw
Responses Re: Extended query protocol and exact types matches.
List pgsql-general
Hey general@,

To be assured and just for calmness.

Problem:

1. CREATE TABLE test_tab (id integer, dat varchar(64));

2. INSERT INTO test_tab VALUES($1, $2) via PQexecParams,
 where paramTypes[0] == OID of bigint,
           paramTypes[1] == OID of text.

Questions:

Whether this case falls to
http://www.postgresql.org/docs/9.0/static/typeconv-query.html ?

Is such cases safe or it is recommended (best) to specify a
OIDs which are exact matches ?

PS.

I know, that queries like SELECT $1 does not work without
specifying OID or without rewriting it to e.g. SELECT $1::text.

Thanks.

--
// Dmitriy.


pgsql-general by date:

Previous
From: Reid Thompson
Date:
Subject: Re: Tuning Postgres for single user manipulating large amounts of data
Next
From: Brady Mathis
Date:
Subject: Re: Using PG with Windows EFS or TrueCrypt for encryption