Skip site navigation (1) Skip section navigation (2)

Re: CURRENT CVS: MULTIBYTE: CANT CONNECT....

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL Bugs List <pgsql-bugs(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org
Cc: pgman(at)candle(dot)pha(dot)pa(dot)us, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: CURRENT CVS: MULTIBYTE: CANT CONNECT....
Date: 2001-09-08 02:12:18
Message-ID: 20010907211218.A7640@lerami.lerctr.org (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackerspgsql-patches
* Larry Rosenman <ler(at)lerctr(dot)org> [010907 21:06]:
> I finally got all the way through a compile set:
> 
> CC=cc CXX=CC ./configure  --prefix=/usr/local/pgsql --enable-syslog \
> 	--with-CXX --with-perl --enable-multibyte --enable-cassert \
> 	--with-includes=/usr/local/include --with-libs=/usr/local/lib \
> 	--enable-debug \
> 	--with-tcl --with-tclconfig=/usr/local/lib \
> 	--with-tkconfig=/usr/local/lib  --enable-locale 
> and when I try to connect to an existing DB, loaded from a pg_dump
> from the previous 7.2devel sources, I get:
> TRAP: Failed Assertion("!(ClientEncoding):", File: "mbutils.c", Line:
> 314)
> !(ClientEncoding) (0) [No such file or directory]
> DEBUG:  server process (pid 3077) was terminated by signal 6
> DEBUG:  terminating any other active server processes
> DEBUG:  all server processes terminated; reinitializing shared memory
> and semaphores
> DEBUG:  database system was interrupted at 2001-09-07 21:00:33 CDT
> DEBUG:  checkpoint record is at 0/2922408
> DEBUG:  redo record is at 0/2922408; undo record is at 0/0; shutdown
> TRUE
> DEBUG:  next transaction id: 824; next oid: 371237
> DEBUG:  database system was not properly shut down; automatic recovery
> in progress
> DEBUG:  ReadRecord: record with zero length at 0/2922448
> DEBUG:  redo is not required
> DEBUG:  database system is ready
> 
> 
> 
> THIS IS UNACCEPTABLE. 
> 
> How do I get out of it? 
> 
> LER
The following patch fixes it:


Index: mbutils.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v
retrieving revision 1.20
diff -c -r1.20 mbutils.c
*** mbutils.c	2001/09/06 04:57:29	1.20
--- mbutils.c	2001/09/08 02:11:55
***************
*** 21,27 ****
   *
   * Karel Zak (Aug 2001)
   */
! static pg_enc2name	*ClientEncoding = NULL;
  static pg_enc2name	*DatabaseEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
  
  static void	(*client_to_mic) ();	/* something to MIC */
--- 21,27 ----
   *
   * Karel Zak (Aug 2001)
   */
! static pg_enc2name	*ClientEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
  static pg_enc2name	*DatabaseEncoding = &pg_enc2name_tbl[ PG_SQL_ASCII ];
  
  static void	(*client_to_mic) ();	/* something to MIC */
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

pgsql-hackers by date

Next:From: Hiroshi InoueDate: 2001-09-08 02:26:30
Subject: Re: CVS ODBC does not compile
Previous:From: Larry RosenmanDate: 2001-09-08 02:06:18
Subject: CURRENT CVS: MULTIBYTE: CANT CONNECT....

pgsql-bugs by date

Next:From: tomasDate: 2001-09-08 06:55:36
Subject: PostgreSQL 7.1.3 vs. gcc 2.95.4 and GNU libc 2.2.4
Previous:From: Larry RosenmanDate: 2001-09-08 02:06:18
Subject: CURRENT CVS: MULTIBYTE: CANT CONNECT....

pgsql-patches by date

Next:From: Karel ZakDate: 2001-09-08 08:01:55
Subject: Re: encoding: ODBC, createdb
Previous:From: Larry RosenmanDate: 2001-09-08 02:06:18
Subject: CURRENT CVS: MULTIBYTE: CANT CONNECT....

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group