Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-04 Thread Markus Schaber
Hi, Matteo, Matteo Sgalaberni wrote: A my collegue JDBC application that stay in idle intransaction 24h/24h Just a little note: For most applications, this can be fixed updating the JDBC driver. Old versions had the behaviour of auto-opening a new backend transaction on commit/rollback,

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-04 Thread Gregory Stark
Tom Lane [EMAIL PROTECTED] writes: Matteo Sgalaberni [EMAIL PROTECTED] writes: Good to know this...but why this behaviour? it'is lovely...:) Open transactions are tracked across the whole cluster. This is necessary when vacuuming shared catalogs. In principle we could track per-database

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-04 Thread Alvaro Herrera
Gregory Stark wrote: Tom Lane [EMAIL PROTECTED] writes: Matteo Sgalaberni [EMAIL PROTECTED] writes: Good to know this...but why this behaviour? it'is lovely...:) Open transactions are tracked across the whole cluster. This is necessary when vacuuming shared catalogs. In principle

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-04 Thread Gregory Stark
Alvaro Herrera [EMAIL PROTECTED] writes: Gregory Stark wrote: Tom Lane [EMAIL PROTECTED] writes: Matteo Sgalaberni [EMAIL PROTECTED] writes: Good to know this...but why this behaviour? it'is lovely...:) Open transactions are tracked across the whole cluster. This is

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-04 Thread Tom Lane
Gregory Stark [EMAIL PROTECTED] writes: I must be misunderstanding Tom's comment then. What I'm referring to is lazy_vacuum_rel() calls vacuum_set_xid_limits with the relisshared flag of the relation. vacuum_set_xid_limits passes that to GetOldestXmin as the allDbs parameter. GetOldestXmin

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-02 Thread Matteo Sgalaberni
On Fri, Sep 01, 2006 at 01:35:20PM -0400, Tom Lane wrote: Matteo Sgalaberni [EMAIL PROTECTED] writes: Ok. I stopped all clients. No connections to this database. When you say this database, do you mean the whole postmaster cluster, or just the one database? Open transactions in other

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-02 Thread Dave Cramer
Matteo, On 2-Sep-06, at 4:37 AM, Matteo Sgalaberni wrote: On Fri, Sep 01, 2006 at 01:35:20PM -0400, Tom Lane wrote: Matteo Sgalaberni [EMAIL PROTECTED] writes: Ok. I stopped all clients. No connections to this database. When you say this database, do you mean the whole postmaster

Re: [PERFORM] database bloat,non removovable rows, slow query etc... [RESOLVED]

2006-09-02 Thread Tom Lane
Matteo Sgalaberni [EMAIL PROTECTED] writes: Good to know this...but why this behaviour? it'is lovely...:) Open transactions are tracked across the whole cluster. This is necessary when vacuuming shared catalogs. In principle we could track per-database xmin values as well, but the distributed

[PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Matteo Sgalaberni
Hi, probably this is a very frequenfly question... I read archivies of this list but I didn't found a finally solution for this aspect. I'll explain my situation. PSQL version 8.1.3 configuration of fsm,etcc default autovacuum and statistics activated 22 daemons that have a persistent connection

Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Tom Lane
Matteo Sgalaberni [EMAIL PROTECTED] writes: 22 daemons that have a persistent connection to this database(all connection are in idle(no transaction opened). You may think that, but you are wrong. INFO: cliente: found 0 removable, 29931 nonremovable row versions in 559 pages DETAIL: 29398

Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Patrick Hatcher
Are there open transactions on the table in question? We had the same issue. A 100K row table was so bloated that the system thought there was 1M rows. We had many IDLE transaction that we noticed in TOP, but since we could not track down which process or user was holding the table we had to

Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Markus Schaber
Hi, Tom and Matteo, Tom Lane wrote: Matteo Sgalaberni [EMAIL PROTECTED] writes: 22 daemons that have a persistent connection to this database(all connection are in idle(no transaction opened). You may think that, but you are wrong. INFO: cliente: found 0 removable, 29931 nonremovable

Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Matteo Sgalaberni
On Fri, Sep 01, 2006 at 10:43:30AM -0400, Tom Lane wrote: Matteo Sgalaberni [EMAIL PROTECTED] writes: 22 daemons that have a persistent connection to this database(all connection are in idle(no transaction opened). You may think that, but you are wrong. Ok. I stopped all clients. No

Re: [PERFORM] database bloat,non removovable rows, slow query etc...

2006-09-01 Thread Tom Lane
Matteo Sgalaberni [EMAIL PROTECTED] writes: Ok. I stopped all clients. No connections to this database. When you say this database, do you mean the whole postmaster cluster, or just the one database? Open transactions in other databases of the same cluster can be a problem.