pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRe(2): 7.0.3->7.1.2; pg_setlocale error
2+ messages / 1 participants
[nested] [flat]
* Re(2): 7.0.3->7.1.2; pg_setlocale error
@ 2001-06-17 13:56 pgsql-admin <pgsql-admin@fc.emc.com.ph>
0 siblings, 0 replies; 2+ messages in thread
From: pgsql-admin @ 2001-06-17 13:56 UTC (permalink / raw)
To: pgsql-admin; lamar.owen@wgcr.org
I haven't tried hard but I think it's the money data type from 7.0.3 dump
that caused it.
office=# select * from pp_payment;
NOTICE: pg_setlocale(): 'LC_COLLATE=ˆ@' cannot be honored.
NOTICE: pg_setlocale(): 'LC_CTYPE=°t!@?' cannot be honored.
NOTICE: pg_setlocale(): 'LC_MONETARY=?Pi' cannot be honored.
office=# \d pp_payment
Table "pp_payment"
Attribute | Type | Modifier
--------------+---------------+--------------------------------------------------------------
id | smallint | not null
rcptnum | character(32) | not null
customer | character(16) |
payment_type | character(32) |
amount | money |
balance | integer |
active | boolean |
rcptdate | date | default date(('current'::"timestamp" +
'00:00'::"interval"))
lamar.owen@wgcr.org writes:
>On Thursday 14 June 2001 11:34, pgsql-admin wrote:
>> I am trying to migrate from 7.0.3 to 7.1.2. I just got the
>> rpms from rawhide of redhat.
>
>> While loading the 7.0.3 dump_file to 7.1.2, I got these errors...
>>
>> ERROR: stat failed on file '/usr/lib/pgsql/plpgsql.so': No such file or
>> directory
>
>The current rawhide RPM's put the PL's in /usr/lib instead of
>/usr/lib/pgsql.
>The current PGDG RPM's put them in /usr/lib/pgsql, which is where the
>7.0.3
>RPMset put them.
>
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_COLLATE=È€' cannot be
>honored.
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_CTYPE=°T0@X' cannot be
>honored.
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_MONETARY=X˜' cannot be
>honored.
>
>Now these are interesting.
>
>> Will it do harm to the data?
>
>Does it appear to have harmed your data?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re(2): 7.0.3 -> 7.1.2; pg_setlocale error
@ 2001-06-20 13:18 pgsql-admin <pgsql-admin@fc.emc.com.ph>
0 siblings, 0 replies; 2+ messages in thread
From: pgsql-admin @ 2001-06-20 13:18 UTC (permalink / raw)
To: pgsql-admin
zakkr@zf.jcu.cz writes:
>On Thu, Jun 14, 2001 at 11:34:06PM +0800, pgsql-admin wrote:
>
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_COLLATE=??' cannot be
>honored.
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_CTYPE=¡T0@X' cannot be
>honored.
>> NOTICE: copy: line 1, pg_setlocale(): 'LC_MONETARY=X?' cannot be
>honored.
>
> This message is reported if standard setlocale(3) returns error. IMHO
>isn't PG problem, but something is bad in your system or PG setting.
>
> But why the copy call pg_setlocale() .. any trigger or function in
>domain
>integrity checking/setting in the table definition?
>
> Karel
according to the logs pg_dump was performing 'copy from stdin' and the
data has money data type.
I am wrong in my last email saying that it only affects one of our table
that
has money data type. I just saw the same error in the regression test.
What gives?
Sherwin
FROM "regression.diffs"
<CUT>
inline patch 1: ./results/int8.out Wed Jun 20 19:51:40 2001 (+0/-0 lines) download inline-1.patch
*** ./expected/int8.out Sat Jan 27 06:50:26 2001
--- ./results/int8.out Wed Jun 20 19:51:40 2001
***************
*** 111,116 ****
--- 111,119 ----
--
SELECT '' AS to_char_1, to_char(q1, '9G999G999G999G999G999'),
to_char(q2, '9,999,999,999,999,999')
FROM INT8_TBL;
+ NOTICE: pg_setlocale(): 'LC_COLLATE=~HÆ^]^H@Ç^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_CTYPE=°t!@^XÕ^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_MONETARY=^XÕ^]^HhN&^H^P' cannot be honored.
to_char_1 | to_char | to_char
-----------+------------------------+------------------------
| 123 | 456
<CUT>
inline patch 2: ./results/numeric.out Wed Jun 20 19:51:50 2001 (+3/-0 lines) download inline-2.patch
*** ./expected/numeric.out Sat Apr 8 03:17:42 2000
--- ./results/numeric.out Wed Jun 20 19:51:50 2001
***************
*** 698,703 ****
--- 698,706 ----
--
SELECT '' AS to_char_1, to_char(val, '9G999G999G999G999G999')
FROM num_data;
+ NOTICE: pg_setlocale(): 'LC_COLLATE=~HÆ^]^H@Ç^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_CTYPE=°t!@^XÕ^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_MONETARY=^XÕ^]^H| ²#^H^P' cannot be honored.
to_char_1 | to_char
-----------+------------------------
| 0
<CUT>
inline patch 3: ./results/rules.out Wed Jun 20 19:52:24 2001 (+3/-0 lines) download inline-3.patch
*** ./expected/rules.out Wed Dec 6 03:15:48 2000
--- ./results/rules.out Wed Jun 20 19:52:24 2001
***************
*** 52,57 ****
--- 52,60 ----
create rule rtest_emp_ins as on insert to rtest_emp do
insert into rtest_emplog values (new.ename, current_user,
'hired', new.salary, '0.00');
+ NOTICE: pg_setlocale(): 'LC_COLLATE=~HÆ^]^H@Ç^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_CTYPE=°t!@^XÕ^]^H^P' cannot be honored.
+ NOTICE: pg_setlocale(): 'LC_MONETARY=^XÕ^]^H¨P&^H^P' cannot be honored.
create rule rtest_emp_upd as on update to rtest_emp where new.salary !=
old.salary do
insert into rtest_emplog values (new.ename, current_user,
'honored', new.salary, old.salary);
Patches: download all (3 files, .tar.gz)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-06-20 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-17 13:56 Re(2): 7.0.3->7.1.2; pg_setlocale error pgsql-admin <pgsql-admin@fc.emc.com.ph>
2001-06-20 13:18 Re(2): 7.0.3 -> 7.1.2; pg_setlocale error pgsql-admin <pgsql-admin@fc.emc.com.ph>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox