X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1818ED8A65 for ; Fri, 9 Sep 2005 17:42:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52425-04 for ; Fri, 9 Sep 2005 20:42:27 +0000 (GMT) Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by svr1.postgresql.org (Postfix) with ESMTP id DEB7CD8A40 for ; Fri, 9 Sep 2005 17:42:26 -0300 (ADT) Received: from smtp3.ActiveState.com (smtp3.ActiveState.com [192.168.3.19]) by smtp1.ActiveState.com (8.12.10/8.12.10) with ESMTP id j89KgP1N006208 for ; Fri, 9 Sep 2005 13:42:25 -0700 (envelope-from mischas@ActiveState.com) Received: from [192.168.99.210] (mallet.activestate.com [192.168.99.210]) by smtp3.ActiveState.com (8.12.11/8.12.11) with ESMTP id j89Kfb57011548 for ; Fri, 9 Sep 2005 13:41:40 -0700 (envelope-from mischas@activestate.com) Message-ID: <4321F431.3030509@activestate.com> Date: Fri, 09 Sep 2005 13:44:33 -0700 From: Mischa Sandberg Reply-To: mischa@ActiveState.com User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Change of default type in DBD::Pg 1.42 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/9 X-Sequence-Number: 5732 Was curious about the change that came about in the thread: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg ... which (I gather) hinged on an efficiency issue, of type-mismatch between passed parameters and indexed columns. I'm asking because a fair amount of code broke in our app, when "?" appeared in a context where PG couldn't determine a type from context, but VARCHAR was appropriate. In general, Perl, and perl programmers, assume it's okay for any scalar to reduce to a string. One even claims that the DBI spec actually says that default binding is VARCHAR; I have yet to track down the reference. I was under the impression that type-mismatch of constants vs indexed-column types was something that was fixed in Postgres8; should the above "fix" then not be a non-issue? To un-break code here, I'm having to reverse the patch on dbdimp.c :-( -- "Dreams come true, not free." -- S.Sondheim.