Re: [BUGS] BUG #3504: Some listening sessions never return from writing, problems ensue

2007-08-03 Thread Peter Koczan
I think the code is somehow interrupt based, but I don't know. I've asked the primary maintainer of the program to look into this with me. We should have more insight by early next week. Peter Tom Lane wrote: "Peter Koczan" <[EMAIL PROTECTED]> writes: This app uses Perl/DBD::Pg, and the c

Re: [BUGS] BUG #2393: update fails with unique constraint violation

2007-08-03 Thread Vlad ROMASCANU
You may want to suggest to the devs to extend the "UPDATE" syntax with "ORDER BY"? such that: update rumple.directory set right_visit_id = right_visit_id + 2 where right_visit_id >= parent_right ORDER BY right_visit_id DESC; ...would work by enforcing a certain update order. And index scan is

Re: [BUGS] BUG #3506: to_number silently ignore characters

2007-08-03 Thread William Leite Araújo
CREATE OR REPLACE my_to_number(text,text) RETURNS number AS $$ BEGIN IF NOT textregexeq($1,'[0-9]{'||length($2)||'}') THEN RAISE EXCEPTION 'TEXT % is not a valid NUMBER',$1; END IF; RETURNS to_number($1,$2); END; $$ LANGUAGE PLPGSQL IMMUTABLE; OR something like ... 2007/8/3

Re: [BUGS] Bug Pgsql

2007-08-03 Thread Rodriguez Fernando
Hi, try this: dump your db create a db in sqlascii import into new one export from new one and then try to import in utf8. i try somethng like this in 8.1. good luck. Казорез Александр Олегович wrote: Hi to all, I came across a problem while switching from 8.0 to 8.1.4 (or, now, to 8.2.4).

Re: [BUGS] BUG #3506: to_number silently ignore characters

2007-08-03 Thread William Leite Araújo
Ok. Now the function is OK CREATE OR REPLACE FUNCTION my_to_number(text,text) RETURNS numeric AS $$ BEGIN IF NOT textregexeq($1,'^[0-9]+$') THEN RAISE EXCEPTION 'TEXT % is not a valid NUMBER',$1; END IF; RETURN to_number($1,$2); END; $$ LANGUA

Re: [BUGS] BUG #3506: to_number silently ignore characters

2007-08-03 Thread William Leite Araújo
2007/8/3, William Leite Araújo <[EMAIL PROTECTED]>: > > CREATE OR REPLACE my_to_number(text,text) RETURNS number AS OOOps... CREATE OR REPLACE FUNCTION ... $$ > BEGIN > IF NOT textregexeq($1,'[0-9]{'||length($2)||'}') THEN > RAISE EXCEPTION 'TEXT % is not a valid NUMBER',$1; > END

Re: [BUGS] BUG #3509: bug with command from with two tables

2007-08-03 Thread William Leite Araújo
Bom, então provavelmente o problema é como JDBC que está usando, já que no PGAdmin3 funciona corretamente. Lembre-se que a versão TEM QUE SER do postgresql 8.2... Veja http://jdbc.postgresql.org/download.html 2007/8/3, Raimundo Alves <[EMAIL PROTECTED]>: > > > The following bug ha

[BUGS] Bug Pgsql

2007-08-03 Thread Казорез Александр Олегович
Hi to all, I came across a problem while switching from 8.0 to 8.1.4 (or, now, to 8.2.4). Here it is: QUOTE: Some users are having problems loading UTF-8 data into 8.1.X. This is because previous versions allowed invalid UTF-8 byte sequences to be entered into the database, and this rel

[BUGS] BUG #3509: bug with command from with two tables

2007-08-03 Thread Raimundo Alves
The following bug has been logged online: Bug reference: 3509 Logged by: Raimundo Alves Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.4 Operating system: Windows Description:bug with command from with two tables Details: i am using the postgres at an appl

Re: [BUGS] BUG #3506: to_number silently ignore characters

2007-08-03 Thread Laurent Martelli
Heikki Linnakangas a écrit : Laurent Martelli wrote: to_number('123.0','99') returns 1230, at least on version 7.4 and 8.1. I think it should return 123 or raise an error. to_number will silently ignore any character that doesn't match the pattern. That can be confusing, and not generally