Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix portability issue when compiling for pg7.3 with older gcc versions.

  • Loading branch information...
commit 1eaf6bcfca481818cecd992995da74772c5f831b 1 parent 29105b7
postgres authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 pg_backend_support.c
View
5 pg_backend_support.c
@@ -1438,15 +1438,14 @@ send_message_to_server_log(ErrorData *edata)
static void
send_message_to_frontend(ErrorData *edata)
{
+ /* Old style --- gin up a backwards-compatible message */
+ StringInfoData buf;
StringInfoData msgbuf;
/* 'N' (Notice) is for nonfatal conditions, 'E' is for errors */
pq_beginmessage(&msgbuf);
pq_sendbyte(&msgbuf, edata->elevel != ERROR ? 'N' : 'E');
- /* Old style --- gin up a backwards-compatible message */
- StringInfoData buf;
-
initStringInfo(&buf);
appendStringInfo(&buf, "%s: ", error_severity(edata->elevel));
Please sign in to comment.
Something went wrong with that request. Please try again.