Don't lose notices that don't come from a query.
authorDave Page <dpage@pgadmin.org>
Sat, 17 Sep 2005 22:58:51 +0000 (22:58 +0000)
committerDave Page <dpage@pgadmin.org>
Sat, 17 Sep 2005 22:58:51 +0000 (22:58 +0000)
connection.c

index 38a4e289b8a565aa90bbb8111fdbca7d382a8b7b..b27af82071cad05ba87eeb1391266098ad23030f 100644 (file)
@@ -2359,7 +2359,11 @@ CC_handle_notice(void *arg, const char *msg)
 
        if (qres == NULL)
        {
-           // No query in progress, so just drop the notice
+           /* Log the notice to stderr and any logs 'cos */
+           /* there's not much else we can do with it.   */
+           fprintf(stderr, "NOTICE from backend outside of a query: '%s'\n", msg);
+           mylog("~~~ NOTICE: '%s'\n", msg);
+           qlog("NOTICE from backend outside of a query: '%s'\n", msg);
            return;
        }