Suggesting a libpq addition - Mailing list pgsql-hackers

From Marc Balmer
Subject Suggesting a libpq addition
Date
Msg-id 4CFB59E9.1090101@msys.ch
Whole thread Raw
Responses Re: Suggesting a libpq addition  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Suggesting a libpq addition  (Magnus Hagander <magnus@hagander.net>)
Re: Suggesting a libpq addition  (Andrew Chernow <ac@esilo.com>)
List pgsql-hackers
I am suggesting adding a function to libpq:

PGresult *PQvexec(PGconn *conn, const char *fmt, ...);

It behaves similar to PQexec, but it allows for printf style varargs and
does connection re-establishing if the connection fails (it can be
discussed if this already to much magic, maybe remove this part).  It
has been carefully designed to handle memory the right way.  We use this
since a long time.

What do you think?

Attachment

pgsql-hackers by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: profiling connection overhead
Next
From: Pavel Stehule
Date:
Subject: Re: Suggesting a libpq addition