aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 9670f326404..2c457bf05e0 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.76 1998/06/15 19:29:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.77 1998/06/16 07:29:30 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -83,6 +83,10 @@
#include "nodes/memnodes.h"
#endif
+#ifdef MB
+#include "commands/variable.h"
+#endif
+
/* ----------------
* global variables
* ----------------
@@ -1270,6 +1274,19 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
InitPostgres(DBName);
+#ifdef MB
+ /* set default client encoding */
+ if (!Quiet)
+ {
+ puts("\treset_client_encoding()..");
+ }
+ reset_client_encoding();
+ if (!Quiet)
+ {
+ puts("\treset_client_encoding() done.");
+ }
+#endif
+
/* ----------------
* if an exception is encountered, processing resumes here
* so we abort the current transaction and start a new one.
@@ -1308,7 +1325,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.76 $ $Date: 1998/06/15 19:29:27 $");
+ puts("$Revision: 1.77 $ $Date: 1998/06/16 07:29:30 $");
}
/* ----------------