We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1471a14 commit1eb2231Copy full SHA for 1eb2231
contrib/pg_upgrade/server.c
@@ -326,21 +326,26 @@ check_for_libpq_envvars(void)
326
327
/* Get valid libpq env vars from the PQconndefaults function */
328
329
-start=option=PQconndefaults();
+start=PQconndefaults();
330
331
-while (option->keyword!=NULL)
+for (option=start;option->keyword!=NULL;option++)
332
{
333
-constchar*value;
334
-
335
-if (option->envvar&& (value=getenv(option->envvar))&&strlen(value)>0)
+if (option->envvar)
336
337
-found= true;
+constchar*value;
338
339
-pg_log(PG_WARNING,
340
-"libpq env var %-20s is currently set to: %s\n",option->envvar,value);
341
-}
+if (strcmp(option->envvar,"PGCLIENTENCODING")==0)
+continue;
342
343
-option++;
+value=getenv(option->envvar);
+if (value&&strlen(value)>0)
+{
+found= true;
344
+
345
+pg_log(PG_WARNING,
346
+"libpq env var %-20s is currently set to: %s\n",option->envvar,value);
347
+}
348
349
}
350
351
/* Free the memory that libpq allocated on our behalf */