Re: Perl::DBI and interval syntax [side question]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: MaXX <bs139412(at)skynet(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Perl::DBI and interval syntax [side question]
Date: 2005-11-08 14:52:25
Message-ID: 5393.1131461545@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

MaXX <bs139412(at)skynet(dot)be> writes:
> Can this be the cause of a huge loss of perf? I have the following query in
> a Perl script using DBI + DBD::Pg, AutoCommit => 0:
> SELECT stats_put_sources(?, ?, int4(?), int4(?))
> This syntax runs almost 10x faster than:
> SELECT stats_put_sources(?, ?, ?::int4, ?::int4)

You probably have no idea how hard that is to believe --- they should
certainly be just the same. Let's see a self-contained test case that
exhibits this problem.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-11-08 14:56:28 Re: Beyond the 1600 columns limit on windows
Previous Message Richard Huxton 2005-11-08 14:31:34 Re: Connect to a database in a .sql file