Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Adjust error message, now that we expect other message types than connection
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Mar 2011 05:54:28 +0000 (08:54 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Mar 2011 05:54:28 +0000 (08:54 +0300)
close at this point. Fix PQsetnonblocking() comment.

Fujii Masao

src/backend/replication/walsender.c
src/interfaces/libpq/fe-exec.c

index f76b5b081d979e281816d6fc6abbcba968e55390..2e2659a8c9fec86ea0ac8194a8f9025f3235483c 100644 (file)
@@ -506,7 +506,7 @@ ProcessRepliesIfAny(void)
            default:
                ereport(FATAL,
                        (errcode(ERRCODE_PROTOCOL_VIOLATION),
-                        errmsg("invalid standby closing message type %d",
+                        errmsg("invalid standby message type %d",
                                firstchar)));
        }
    }
index dcdb1a935142584a89b15c667e23e979256508df..42da1a8f90547a38cb3a8af96453033dc8de694e 100644 (file)
@@ -2869,7 +2869,7 @@ PQparamtype(const PGresult *res, int param_num)
 
 /* PQsetnonblocking:
  * sets the PGconn's database connection non-blocking if the arg is TRUE
- * or makes it non-blocking if the arg is FALSE, this will not protect
+ * or makes it blocking if the arg is FALSE, this will not protect
  * you from PQexec(), you'll only be safe when using the non-blocking API.
  * Needs to be called only on a connected database connection.
  */