diff -Nur postgresql-8.3/build-tree/postgresql-8.3beta1/src/backend/utils/mb/encnames.c postgresql-8.3.new/build-tree/postgresql-8.3beta1/src/backend/utils/mb/encnames.c
--- postgresql-8.3beta1/src/backend/utils/mb/encnames.c	2007-04-16 20:50:49.000000000 +0200
+++ postgresql-8.3beta1/src/backend/utils/mb/encnames.c	2007-10-12 16:56:35.000000000 +0200
@@ -314,6 +314,9 @@
 		"EUC_TW", PG_EUC_TW
 	},
 	{
+		"JOHAB", PG_JOHAB
+	},
+	{
 		"UTF8", PG_UTF8
 	},
 	{
@@ -413,9 +416,6 @@
 		"UHC", PG_UHC
 	},
 	{
-		"JOHAB", PG_JOHAB
-	},
-	{
 		"GB18030", PG_GB18030
 	},
 	{
diff -Nur postgresql-8.3/build-tree/postgresql-8.3beta1/src/include/catalog/catversion.h postgresql-8.3.new/build-tree/postgresql-8.3beta1/src/include/catalog/catversion.h
--- postgresql-8.3beta1/src/include/catalog/catversion.h	2007-09-30 21:54:58.000000000 +0200
+++ postgresql-8.3beta1/src/include/catalog/catversion.h	2007-10-12 16:56:47.000000000 +0200
@@ -53,6 +53,6 @@
  */
 
 /*							yyyymmddN */
-#define CATALOG_VERSION_NO	200709301
+#define CATALOG_VERSION_NO	200710121
 
 #endif
diff -Nur postgresql-8.3/build-tree/postgresql-8.3beta1/src/include/mb/pg_wchar.h postgresql-8.3.new/build-tree/postgresql-8.3beta1/src/include/mb/pg_wchar.h
--- postgresql-8.3beta1/src/include/mb/pg_wchar.h	2007-09-18 19:41:17.000000000 +0200
+++ postgresql-8.3beta1/src/include/mb/pg_wchar.h	2007-10-12 16:56:35.000000000 +0200
@@ -158,6 +158,7 @@
 	PG_EUC_CN,					/* EUC for Chinese */
 	PG_EUC_KR,					/* EUC for Korean */
 	PG_EUC_TW,					/* EUC for Taiwan */
+	PG_JOHAB,					/* EUC for Korean JOHAB; client encoding only, but must stay at this position for 8.2 compat */
 	PG_UTF8,					/* Unicode UTF8 */
 	PG_MULE_INTERNAL,			/* Mule internal code */
 	PG_LATIN1,					/* ISO-8859-1 Latin 1 */
@@ -194,7 +195,6 @@
 	PG_BIG5,					/* Big5 (Windows-950) */
 	PG_GBK,						/* GBK (Windows-936) */
 	PG_UHC,						/* UHC (Windows-949) */
-	PG_JOHAB,					/* EUC for Korean JOHAB */
 	PG_GB18030,					/* GB18030 */
 	PG_SHIFT_JIS_2004,			/* Shift-JIS-2004 */
 	_PG_LAST_ENCODING_			/* mark only */
