[GENERAL] get the array value?

2008-12-24 Thread Charles.Hou
name[] = { JOHN , ALEX , TEST ,""} SQL : select name from table1 where 'TEST' = any (name) return: { JOHN , ALEX , TEST } in this sql command, how can i get the index of 'TEST' is 3 ? -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

[GENERAL] Idle in transcation problem?

2008-08-19 Thread Charles.Hou
i use the "ps -ef | grep postgres" to see all the connections. the connection's status is "Idle in transcation". and i use the " du -h /mydb" to check the disk size. The disk size of mydb has increased from 400MB to 600MB. Why? because of the "idle in transcation" ? my pg version:8.1.3 OS: Lin

[GENERAL] about the performance of autovacuum and vacuumdb?

2007-12-12 Thread Charles.Hou
i try to compare two methods of garbage-collect.(Postgresql Ver:8.1.3) 1. enable autovacuum without using vacuumdb -f mydb in crontab. 2. using crontab to vacuumdb in every 10 min (autovacuum disable) the method 2 got more free space than method 1. the disk size of database still increased in m

Re: [GENERAL] autovacuum is stopping automatically....

2007-12-07 Thread Charles.Hou
On 12月6日, 下午10�r14分, [EMAIL PROTECTED] (Alvaro Herrera) wrote: > Charles.Hou wrote: > > this is the pg_log... > > after 2007-12-04 10:40:37 CST 15533 , it always autovacuum "template0" > > not mydatabase... > > Is there an ERROR in the log? My guess is

[GENERAL] autovacuum is stopping automatically....

2007-12-06 Thread Charles.Hou
this is the pg_log... after 2007-12-04 10:40:37 CST 15533 , it always autovacuum "template0" not mydatabase... why? i didn't change any configuration... 2007-12-04 10:14:55 CST 23858 LOG: autovacuum: processing database "mydatabase" 2007-12-04 10:23:15 CST 31601 LOG: autovacuum: processing datab

[GENERAL] float to int

2007-11-12 Thread Charles.Hou
how can i get the int value using the sql language? like this, "select cost from my_money_table " , the data type of cost is float. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/f

[GENERAL] about the PostgreSql loading?

2007-09-24 Thread Charles.Hou
is there any way to know the database loading? because i want to know the performance after i use the pgpool. how can i know the perofrmance have been increased? ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] about pgpool question

2007-09-24 Thread Charles.Hou
i have installed the pgpool in the server and start it. but how can i know it's working? i means that the clients connected to the database by the pgpool. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] about pgpool question

2007-09-24 Thread Charles.Hou
On 9 20 , 3 11 , Hannes Dorbath <[EMAIL PROTECTED]> wrote: > On 20.09.2007 04:34, Charles.Hou wrote: > > > i have installed thepgpoolin the server and start it. but how can i > > know it's working? i means that the clients connected to the database > &g

Re: [GENERAL] about pgpool question

2007-09-24 Thread Charles.Hou
On 9 21 , 10 04 , "Charles.Hou" <[EMAIL PROTECTED]> wrote: > On 9 20 , 3 11 , Hannes Dorbath <[EMAIL PROTECTED]> wrote: > > > On 20.09.2007 04:34, Charles.Hou wrote: > > > > i have installed thepgpoolin the server and start it. but how can i >

[GENERAL] update command question?

2007-09-18 Thread Charles.Hou
i have the log analysis report by using the pgFouine. in the part of Slowest queries, the update commands " update com_status set travel=620.70001220703 where no=1" have the high Av.duration(s). how should i do to solve this problem? why this simple command can take up the most time? Av.duration(