Fwd: Extended query protocol and exact types matches.

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fwd: Extended query protocol and exact types matches.
Date: 2010-12-10 07:53:33
Message-ID: AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

---------- Forwarded message ----------
From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Date: 2010/12/10
Subject: Fwd: Extended query protocol and exact types matches.
To: postgres list <pgsql-sql(at)postgresql(dot)org>

Hey sql@,

---------- Forwarded message ----------
From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Date: 2010/12/9
Subject: Extended query protocol and exact types matches.
To: pgsql-general(at)postgresql(dot)org

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.

--
// Dmitriy.

--
// Dmitriy.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adarsh Sharma 2010-12-10 07:53:53 Performance tuning in Pgsql
Previous Message John R Pierce 2010-12-10 07:47:22 Re: Import ID column data then convert to SEQUENCE?

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2010-12-10 08:26:44 Re: Extensions, patch v16
Previous Message Simon Riggs 2010-12-10 07:00:42 pgsql: Reduce spurious Hot Standby conflicts from never-visible records

Browse pgsql-sql by date

  From Date Subject
Next Message Robert Haas 2010-12-10 16:16:10 Re: Fwd: Extended query protocol and exact types matches.
Previous Message Dmitriy Igrishin 2010-12-09 22:10:10 Fwd: Extended query protocol and exact types matches.