Ynt: pg_dump error - LOCALIZATION PROBLEM

From: Erol Öz <eroloz(at)esg(dot)com(dot)tr>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "PostgreSQL General List" <pgsql-general(at)postgresql(dot)org>
Subject: Ynt: pg_dump error - LOCALIZATION PROBLEM
Date: 2001-09-14 22:43:57
Message-ID: 006b01c13d6e$c94c4400$0b00000a@doruk.www.doruk.net.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
It worked.
Thanks a lot.
Regards
Erol

-----Özgün Ýleti-----
Kimden: Peter Eisentraut <peter_e(at)gmx(dot)net>
Kime: Erol Öz <eroloz(at)esg(dot)com(dot)tr>
Bilgi: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Tarih: 14 Eylül 2001 Cuma 18:03
Konu: Re: [GENERAL] pg_dump error - LOCALIZATION PROBLEM

Erol Öz writes:

> I think Tom Lane is right as always. My postgresql server was
> configured with --enable-locale option and it works perfect with
> Turkish stuff. However I could not find a solution to the problem
> below.

Untested, but try this:

Edit src/backend/commands/variable.c, look for the function
parse_XactIsoLevel(). Change the code that looks like this:

if (strcasecmp(value, "SERIALIZABLE") == 0)
XactIsoLevel = XACT_SERIALIZABLE;
else if (strcasecmp(value, "COMMITTED") == 0)
XactIsoLevel = XACT_READ_COMMITTED;

into:

if (strcmp(value, "serializable") == 0)
XactIsoLevel = XACT_SERIALIZABLE;
else if (strcmp(value, "committed") == 0)
XactIsoLevel = XACT_READ_COMMITTED;

Recompile and install.

> <eroloz(at)esg(dot)com(dot)tr> writes:
> >> I get an error when the following command executed;
> >> /usr/local/pgsql/bin/pg_dump trollandtoad > trollandtoad.out
> >>
> >>SET TRANSACTION command failed. Explanation from backend: 'ERROR: Bad
TRAN=
> >>SACTION ISOLATION LEVEL (serializable)
>
> >Hmm. It would seem that strcasecmp() on your platform reports that the
> >strings "SERIALIZABLE" and "serializable" are not equal. A locale
> >problem perhaps?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2001-09-14 23:33:55 Re: Numerical DB/Table Names
Previous Message Matthew Rice 2001-09-14 22:41:52 Re: Case sensitivity issue