pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Gardner <jgardner@jonathangardner.net>
Cc: pgsql-interfaces@postgreSQL.org
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Some quick notes about extending libpq for new protocol
Date: Mon, 09 Jun 2003 11:46:57 -0400
Message-ID: <17644.1055173617@sss.pgh.pa.us> (raw)
In-Reply-To: <200306090842.26352.jgardner@jonathangardner.net>
References: <9481.1054574376@sss.pgh.pa.us>
	<200306090842.26352.jgardner@jonathangardner.net>

Jonathan Gardner <jgardner@jonathangardner.net> writes:
> I'll admit -- the current state of PQfn is practically unuseable. However, the 
> idea is pretty cool. I think it would be nice to have a direct function call 
> mechanism that bypasses the parser.

The ability to prepare a "SELECT foo($1, $2, ...)" statement pretty much
eliminates any performance advantage that PQfn once had.  While I've not
had the opportunity to do performance tests, I'd think that a binary
BIND and EXECUTE of such a statement would be about on a par with
FunctionCall.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <17644.1055173617@sss.pgh.pa.us>
Permalink:  ../17644.1055173617@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17644.1055173617@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jgardner@jonathangardner.net, pgsql-hackers@postgreSQL.org
  Subject: Re: Some quick notes about extending libpq for new protocol
  In-Reply-To: <17644.1055173617@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox