Re: psql vs perl prepared inserts - Mailing list pgsql-general

From Tom Lane
Subject Re: psql vs perl prepared inserts
Date
Msg-id 799.1113344623@sss.pgh.pa.us
Whole thread Raw
In response to psql vs perl prepared inserts  (Matt Van Mater <matt.vanmater@gmail.com>)
List pgsql-general
Matt Van Mater <matt.vanmater@gmail.com> writes:
> I've been experimenting with loading a large amount of data into a
> fairly simple database using both psql and perl prepared statements.
> Unfortunately I'm seeing no appreciable differences between the two
> methods, where I was under the impression that prepared statements
> should be much faster (in my case, they are slightly slower).

They should be faster ... if the client library is really using
server-side prepared statements, and not trying to fake it.  Up till
7.4 came out there wasn't any very useful way to use server-side
prepared statements in a driver, and I think only the very latest
version of DBD::Pg knows anything about it.  See this thread for
some recent discussion:
http://archives.postgresql.org/pgsql-interfaces/2005-04/msg00029.php

            regards, tom lane

pgsql-general by date:

Previous
From: Matt Van Mater
Date:
Subject: psql vs perl prepared inserts
Next
From: Paul Tillotson
Date:
Subject: Re: What are the consequences of a bad database design