mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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
This commit is contained in:
@ -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 $");
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
|
Reference in New Issue
Block a user