Displaying 2 results from an estimated 2 matches for "pqresulterrormessage".
2003 May 27
1
Postgres "issue"
Dear list,
I have a small issue with dovecot talking to a postgresql server:
If my postgres server get restarted, dovecot fails to reconnect to the
postgres server.
I run dovecot 0.99.9.1 (which is actually a cvs version of dovecot, of may 9
2003)
I have the same postgres version for the server as I use for the libraries.
Is it hard to get auto-reconnect to work?
Kind regards,
Maikel
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...eturn values;
+}
+
+static char const *
+multi_pgsql_result_get_error(struct sql_result *r)
+{
+ struct multi_pgsql_result *result;
+ char const *errmsg;
+
+ result = (void *)r;
+
+ errmsg = result->errmsg;
+ if (errmsg) return errmsg;
+
+ errmsg = result->errmsg =
+ kill_pg_errmsg_newline(PQresultErrorMessage(result->pgr));
+ return errmsg;
+}
+
+/*** vtable/ init */
+static struct sql_result multi_pgsql_result = {
+ MEMBER(v) {
+ multi_pgsql_result_nop,
+ multi_pgsql_result_first_row,
+ multi_pgsql_result_get_fields_count,
+ multi_pgsql_result_get_field_name,
+ multi_pgsql_result_find_field,
+...