Suggesting a libpq addition

From: Marc Balmer <marc(at)msys(dot)ch>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Suggesting a libpq addition
Date: 2010-12-05 09:22:49
Message-ID: 4CFB59E9.1090101@msys.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pqvexec.c text/plain 2.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2010-12-05 09:47:37 Re: profiling connection overhead
Previous Message flyusa2010 fly 2010-12-05 06:37:49 Using different semaphore for locking