Re: [GENERAL] Multithreaded queue in PgSQL

2008-06-10 Thread laser
to obtain a value between 0 and 255, thus we could partition the whole id set into 255 part without conflict with each other thus avoid the race etc. problem with concurrently 256 consumer process at most, and we surly could change it into adapt for more process, depend on you

Re: [GENERAL] is it a bug in rule system?

2008-05-29 Thread laser
T condition clause and a UPDATE statement; 2, when NOT EXISTS, INSERT succeed, and the query tree in 1 proceed to UPDATE; 3, the UPDATE saw the INSERT in 2, then UPDATE it; if so, then I understand what happed there, and it's surly not a bug but a mis-use of rule. thanks and best regards -la

Re: [GENERAL] is it a bug in rule system?

2008-05-28 Thread laser
A. Kretschmer wrote: am Wed, dem 28.05.2008, um 15:56:22 +0800 mailte laser folgendes: hi all, see query below: create table ruleTest(id integer, name text); create or replace rule ruleTest_insert_rule AS on insert to ruleTest where exists(select 1 from ruleTest where ruleTest.name

[GENERAL] is it a bug in rule system?

2008-05-28 Thread laser
unique index ruletest_name_uniq_idx on ruletest using btree (name); laser=# insert into ruletest(id,name) values(1, 'laser0'); INSERT 0 1 laser=# select * from ruletest; id | name + 2 | laser0 I think the id should be 1, cause the rule condition should only affect exist row

[GENERAL] PostgreSQL over HTTP/REST interface

2008-04-20 Thread laser
hi all, Yahoo China sponsored a small project to build a WebDB interface based on HTTP/JSON/REST etc. and it could be found from here: http://search.cpan.org/~agent/OpenResty-0.1.10/lib/OpenResty.pm any comments are welcome! -laser -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] visibility rule in a EXECUTE with multi sql

2008-04-10 Thread laser
PostgreSQL, but I can't found clear docs, can someone give me some hint about that? thanks and best regards laser -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] out of memory problem in CVS

2005-07-04 Thread laser
and run vacuum analyze; then run the query, now the query return the result, through top, we found that the postmaster process used 600+M RAM, the enable_hashagg is ON. wish that helps. regards laser ---(end of broadcast)--- TIP 9: In versions belo

Re: [GENERAL] out of memory problem in CVS

2005-07-03 Thread laser
ery, and finally got the out of memory error. After that, we dig in the archive and find a solution: issue a 'set enable_hashagg=off' and re-run the query, and now the query give me the result. regards laser ---(end of broadcast)--- TIP 8: explain analyze is your friend

[GENERAL] out of memory problem in CVS

2005-07-03 Thread laser
test in newly checkout CVS tip, but want to report here first. regards laser TopMemoryContext: 24576 total in 3 blocks; 7360 free (5 chunks); 17216 used Operator class cache: 8192 total in 1 blocks; 4916 free (0 chunks); 3276 used Type information cache: 8192 total in 1 blocks; 1844 free (0 chunks

Re: [GENERAL] Psql Question

2000-09-18 Thread He Weiping (Laser Henry)
Danny wrote: > - Hello > - I had previous experience with Access and MySQL. > > -Situation > > - I am trying to create the equvilant of the following which is a mysql > command. > > - Queston > - But I cannot figure out how to do this is postgresql > > "mysql -u root -p mydb < mydb.dump" > I thi