aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-06-16 07:29:54 +0000
committerBruce Momjian <bruce@momjian.us>1998-06-16 07:29:54 +0000
commitcb7cbc16fa4b5933fb5d63052568e3ed6859857b (patch)
treebed17594c4880549288373de4d400512cbe2f82d /src/backend/tcop/postgres.c
parent0d8e7f6381291b85ad6264365e01143357d70a75 (diff)
downloadpostgresql-cb7cbc16fa4b5933fb5d63052568e3ed6859857b.tar.gz
postgresql-cb7cbc16fa4b5933fb5d63052568e3ed6859857b.zip
Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
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 $");
}
/* ----------------