Re: [GENERAL] Vacuum analyze verbose output

2012-12-23 Thread Anjali Arora
Please let me know the query to get freepsace associated with all the relations after installation of pg_freespacemap.   Regards, Anjali --- On Wed, 19/12/12, Glyn Astill wrote: From: Glyn Astill Subject: Re: [GENERAL] Vacuum analyze verbose output To: "Anjali Arora" , &quo

Re: [GENERAL] Vacuum analyze verbose output

2012-12-20 Thread Anjali Arora
Thanks a lot Glyn. --- On Wed, 19/12/12, Glyn Astill wrote: From: Glyn Astill Subject: Re: [GENERAL] Vacuum analyze verbose output To: "Anjali Arora" , "pgsql-general@postgresql.org" Date: Wednesday, 19 December, 2012, 3:19 PM > From: Anjali Arora >To: pgsql-gen

Re: [GENERAL] Vacuum analyze verbose output

2012-12-19 Thread Glyn Astill
> From: Anjali Arora >To: pgsql-general@postgresql.org >Sent: Wednesday, 19 December 2012, 9:14 >Subject: [GENERAL] Vacuum analyze verbose output > > >Hi all, > > >I ran following command on 8.2.2 postgresql: > > > psql -p port dbname -c "vacuum analyze verbose" > > >last few lines from "vacuum

Re: [GENERAL] Vacuum analyze verbose output

2012-12-19 Thread Albe Laurenz
Anjali Arora wrote: > I ran following command on 8.2.2 postgresql: > psql -p port dbname -c "vacuum analyze verbose" > last few lines from "vacuum analyze verbose" output: > > DETAIL: A total of 2336 page slots are in use (including overhead). > 2336 page slots are required to track all free spa

Re: [GENERAL] vacuum analyze GROWS db ?!

2010-02-15 Thread hubert depesz lubaczewski
On Mon, Feb 15, 2010 at 05:04:14PM +0100, Marcin Krol wrote: > Tom Lane wrote: >> Do you *know* that relpages was up to date before that? If your system >> only does manual vacuums then those numbers probably reflected reality >> as of your last vacuum. There are functions that will give you true

Re: [GENERAL] vacuum analyze GROWS db ?!

2010-02-15 Thread Marcin Krol
Tom Lane wrote: Do you *know* that relpages was up to date before that? If your system only does manual vacuums then those numbers probably reflected reality as of your last vacuum. There are functions that will give you true file sizes but relpages ain't it. Oh great. Another catch. What are

Re: [GENERAL] vacuum analyze GROWS db ?!

2010-02-15 Thread Tom Lane
Marcin Krol writes: > The app that created this db is written by me for a change. But I've > done simple VACUUM ANALYZE on the biggest table in db and got this: Do you *know* that relpages was up to date before that? If your system only does manual vacuums then those numbers probably reflected

Re: [GENERAL] vacuum analyze hurts performance

2008-09-03 Thread Tom Lane
aderose <[EMAIL PROTECTED]> writes: > Starting with a database where analyze has never been run I get worse > performance after running it -- is there something I'm missing? Well, not basing such a sweeping statement on a single query example would be a good start ;-). This particular plan might

Re: [GENERAL] vacuum analyze hurts performance

2008-09-02 Thread aderose
Forgot to mention I'm running (PostgreSQL) 8.2.9 -- 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] Vacuum/Analyze (suddenly) too slow

2007-09-30 Thread Gregory Stark
"Phoenix Kiula" <[EMAIL PROTECTED]> writes: > A vacuum analyze that used to take about 3 minutes on a table of about > 4 million rows is now taking up to 25 minutes. I changed the > statistics on two index columns to 100 recently, to improve planner > estimates. Could this have something to do wit

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-25 Thread Alvaro Herrera
Sergei Shelukhin escribió: > * What other non-default configuration settings do you have? > I played w/shared buffers, setting them between 16k and 32k,~ 24k > seems to be the best but the difference is minimal. The work_mem > setting is 256kb, and I increased effective cache size to ~700Mb (~35%

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-25 Thread Sergei Shelukhin
Hi. Sorry for being a bit emotional, I was pretty constructive in my earlier posts (the earlier, the more constructive if you care to search) but I am progressively getting pissed off :( Thanks for the initial tip, running ANALYZE w/o vacuum is faster. Are frequent vacuums even necessary if there

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-25 Thread Sergei Shelukhin
errr... workmem is 256Mb of course, and 5m for explain analyze costs. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-20 Thread Scott Marlowe
Sergei Shelukhin wrote: This is my first (and, by the love of the God, last) project w/pgsql and everything but the simplest selects is so slow I want to cry. This is especially bad with vacuum analyze - it takes several hours for a database of mere 15 Gb on a fast double-core server w/2Gb of RAM

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-19 Thread Greg Smith
On Sun, 17 Jun 2007, Sergei Shelukhin wrote: Is there any way to speed up ANALYZE? Without it all the queries run so slow that I want to cry after a couple of hours of operation and with it system has to go down for hours per day and that is unacceptable. I've found I cry a lot less if I actua

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-19 Thread Bill Moran
In response to Sergei Shelukhin <[EMAIL PROTECTED]>: > This is my first (and, by the love of the God, last) project w/pgsql One has to ask, are you actually looking for help, or trolling? If you honestly want help, I would suggest you work on your communication skills first. If you're a troll,

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-18 Thread David Wall
On Jun 17, 2007, at 2:15 PM, Sergei Shelukhin wrote: This is my first (and, by the love of the God, last) project w/pgsql and everything but the simplest selects is so slow I want to cry. This is especially bad with vacuum analyze - it takes several hours for a database of mere 15 Gb on a fast do

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-18 Thread Alvaro Herrera
Sergei Shelukhin escribió: > The same database running on mysql on basically the same server used > to run optimize table on every table every half an hour without any > problem, I am actually pondering scraping half the work on the > conversion and stuff and going back to mysql but I wonder if th

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-18 Thread Steve Atkins
On Jun 17, 2007, at 2:15 PM, Sergei Shelukhin wrote: This is my first (and, by the love of the God, last) project w/pgsql and everything but the simplest selects is so slow I want to cry. This is especially bad with vacuum analyze - it takes several hours for a database of mere 15 Gb on a fast

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-17 Thread Michael Fuhr
Sergei Shelukhin <[EMAIL PROTECTED]> wrote: > This is my first (and, by the love of the God, last) project w/pgsql > and everything but the simplest selects is so slow I want to cry. Please post an example query and its EXPLAIN ANALYZE output. The pgsql-performance mailing list is a good place to

Re: [GENERAL] VACUUM ANALYZE extremely slow

2007-06-17 Thread Christopher Browne
A long time ago, in a galaxy far, far away, Sergei Shelukhin <[EMAIL PROTECTED]> wrote: > This is my first (and, by the love of the God, last) project w/pgsql > and everything but the simplest selects is so slow I want to cry. > This is especially bad with vacuum analyze - it takes several hours >

Re: [GENERAL] VACUUM ANALYZE

2007-03-26 Thread Shoaib Mir
Yes, that is true if you have the autovacuum setting enabled for the database server. You can see the last auto vacuum and last auto analyze timestamp values from pg_stat_all_tables. -- Shoaib Mir EnterpriseDB (www.enterprisedb.com) On 3/21/07, Robert James <[EMAIL PROTECTED]> wrote: I see in

Re: [GENERAL] VACUUM ANALYZE

2007-03-22 Thread Tom Lane
"Robert James" <[EMAIL PROTECTED]> writes: > I see in all the docs to run VACUUM ANALYZE periodically. My host told me > that in Postgres 8.2 this is not needed as it is done automatically. 8.2 has an autovacuum feature but it is *not* turned on by default ... has your host enabled it? > Is that

Re: [GENERAL] VACUUM ANALYZE taking a long time, %I/O and %CPU very low

2007-02-02 Thread Jim Nasby
On Jan 29, 2007, at 3:14 PM, [EMAIL PROTECTED] wrote: Never mind. I found "vacuum_cost_delay" in the docs, I had it set to 70. I set it to 0 and watched CPU and I/O% peg to 100%. FWIW, my experience is that if you're going to use that, a number between 10 and 20 is usually best. -- Jim Nasb

Re: [GENERAL] VACUUM ANALYZE taking a long time, %I/O and %CPU very low

2007-01-29 Thread [EMAIL PROTECTED]
Never mind. I found "vacuum_cost_delay" in the docs, I had it set to 70. I set it to 0 and watched CPU and I/O% peg to 100%. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] Vacuum, Analyze, ReIndex from within VB.NET 2003

2006-08-03 Thread Richard Huxton
Rohit Prakash Khare wrote: I want to use the following features of PostgreSQL from within VB.NET 2003: Vacuum, Analyze, ReIndex. Is there any way to write a VB.NET code to do the following tasks? Is there some reason why you can't issue SQL with "VACCUM", "ANALYSE" and "REINDEX"? -- Rich

Re: [GENERAL] VACUUM ANALYZE question - PostgreSQL performance tests

2004-11-25 Thread Tom Lane
Julian Legeny <[EMAIL PROTECTED]> writes: >PROBLEM IS, that when I start to retrieve records, the performance > is poor. But when I execute manually (from a DB client) query VACUUM > ANALYZE one more time (during retrieving of pages), the performance is > much better. I don't think this has an

Re: [GENERAL] VACUUM ANALYZE - with debug

2001-08-06 Thread Tom Lane
"Ben-Nes Michael" <[EMAIL PROTECTED]> writes: > [root@www he_IL]# gdb --core ./base/18729/core Try mentioning the postgres executable too: gdb /path/to/postgres /path/to/core Until you can get us a backtrace that shows some names, not numbers, there's not a lot we can do. FWIW, I still

Re: [GENERAL] VACUUM ANALYZE - with debug

2001-08-06 Thread Ben-Nes Michael
? () (gdb) - Original Message - From: "Stephan Szabo" <[EMAIL PROTECTED]> To: "Ben-Nes Michael" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 6:59 PM Subject: Re: [GENERAL] VACUUM ANALYZE > > Hmm, unfortunate (was h

Re: [GENERAL] VACUUM ANALYZE

2001-07-23 Thread Fabrice Scemama
You might suffer from a deadlock. On Tue, 17 Jul 2001, Ben-Nes Michael wrote: > Hi All > > VACUUM ANALYZE; > > return me the next error: > > pqReadData() -- backend closed the channel unexpectedly. > This probably means the backend terminated abnormally > before or while proce

Re: [GENERAL] VACUUM ANALYZE

2001-07-20 Thread Tom Lane
"Ben-Nes Michael" <[EMAIL PROTECTED]> writes: > (gdb) bt > #0 0x4014d8e0 in ?? () > #1 0x8123a52 in ?? () > #2 0x8123a9f in ?? () > #3 0x8123caa in ?? () > [ etc ] Sigh, that's no help at all :-(. Looks like you are using a postgres executable that's been stripped of all symbolic information

Re: [GENERAL] VACUUM ANALYZE

2001-07-20 Thread Stephan Szabo
Hmm, unfortunate (was hoping that only the bottom of the trace was only addresses). Can you turn on --enable-debug (from configure), recompile, and see if it crashes then and what the trace is from that? I think that'd be sufficient in general to get routine names (if I'm wrong, I'm sure Tom wil

Re: [GENERAL] VACUUM ANALYZE

2001-07-19 Thread Ben-Nes Michael
. Program terminated with signal 11, Segmentation fault. #0 0x4014d8e0 in ?? () - Original Message - From: "Stephan Szabo" <[EMAIL PROTECTED]> To: "Ben-Nes Michael" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 9:17 PM Subject: Re:

Re: [GENERAL] VACUUM ANALYZE

2001-07-18 Thread Stephan Szabo
It looks like the backend (I'd assume this one) crashed with a segmentation fault. This should leave a core file (I believe in your db data directory). Can you use a debugger to get a back trace from the core file? On Wed, 18 Jul 2001, Ben-Nes Michael wrote: > Hi > > I use 7.1.2 compiled with

Re: [GENERAL] VACUUM ANALYZE

2001-07-17 Thread Stephan Szabo
What version are you using, and what does your postgres log show? There's probably more information there. - Original Message - From: "Ben-Nes Michael" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 5:02 AM Subject: [GENERAL] VACUUM ANALYZE > Hi All > > VA

Re: [GENERAL] Vacuum analyze keeps hanging (RedHat 6.2, PG 7.03)

2001-04-28 Thread webb sprague
I had this problem with 7.0.3, but it cleared up completely with 7.1 W James Thornton wrote: > > Vacuum analyze keeps hanging here... > > NOTICE: --Relation referer_log-- > NOTICE: Pages 529: Changed 1, reaped 509, Empty 0, New 0; Tup 24306: > Vac 43000, Keep/VTL 0/0, Crash 0, UnUsed 0, MinL

Re: [GENERAL] vacuum analyze again...

2001-02-21 Thread Pete Forman
Bruce Momjian writes: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > > > No, we have no ability to randomly pick rows to use for > > > estimating statistics. Should we have this ability? > > > > That would be really slick, especially given the fact that VACUUM > > runs much faster t

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> I find it hard to believe that VAC ANALYZE is all that much slower than >> plain VACUUM anyway; fixing the indexes is the slowest part of VACUUM in >> my experience. It would be useful to know exactly what the columns are >> in a table where VAC ANALYZ

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Bruce Momjian
> To get a partial VACUUM ANALYZE that was actually usefully faster than > the current code, I think you'd have to read just a few percent of the > blocks, which means much less than a few percent of the rows ... unless > maybe you picked selected blocks but then used all the rows in those > block

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> How's reading a sufficiently large fraction of random rows going to be >> significantly faster than reading all rows? If you're just going to read >> the first n rows then that isn't really random, is it? > Ingres did this too, I thought. You could s

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Chris Jones
Bruce Momjian <[EMAIL PROTECTED]> writes: > No, we have no ability to randomly pick rows to use for estimating > statistics. Should we have this ability? That would be really slick, especially given the fact that VACUUM runs much faster than VACUUM ANALYZE for a lot of PG users. I could change

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Bruce Momjian
> Bruce Momjian writes: > > > No, we have no ability to randomly pick rows to use for estimating > > statistics. Should we have this ability? > > How's reading a sufficiently large fraction of random rows going to be > significantly faster than reading all rows? If you're just going to read >

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Peter Eisentraut
Bruce Momjian writes: > No, we have no ability to randomly pick rows to use for estimating > statistics. Should we have this ability? How's reading a sufficiently large fraction of random rows going to be significantly faster than reading all rows? If you're just going to read the first n rows

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > > No, we have no ability to randomly pick rows to use for estimating > > statistics. Should we have this ability? > > That would be really slick, especially given the fact that VACUUM runs > much faster than VACUUM ANALYZE for a lot of PG users.

Re: [GENERAL] vacuum analyze again...

2001-02-20 Thread Bruce Momjian
[ Charset ISO-8859-1 unsupported, converting... ] > Hi, > > In Oracle, there are 2 ways to do the equivalent of vacuum analyze : > > * analyze table xx compute statitics > * analyze table xx estimate statistics > > In the second form, you can tell on what percentage of the file you > will do yo

Re: [GENERAL] VACUUM ANALYZE FAILS on 7.0.3

2001-01-24 Thread Dave Cramer
TED]> To: "Dave Cramer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 1:23 PM Subject: Re: [GENERAL] VACUUM ANALYZE FAILS on 7.0.3 > * Dave Cramer <[EMAIL PROTECTED]> [010124 09:08] wrote: > > Tom, >

Re: [GENERAL] VACUUM ANALYZE FAILS on 7.0.3

2001-01-24 Thread Alfred Perlstein
* Dave Cramer <[EMAIL PROTECTED]> [010124 09:08] wrote: > Tom, > > Thanks for the hint, and no I wasn't looking in the right place. Here is the >backtrace This isn't a backtrace, you need to actually type 'bt' to get a backtrace. -Alfred

Re: [GENERAL] VACUUM ANALYZE FAILS on 7.0.3

2001-01-23 Thread Tom Lane
"Dave Cramer" <[EMAIL PROTECTED]> writes: > When I run VACUUM ANALYZE it fails and all the backend connections are > closed. Has anyone else run into this problem? There should be a core dump file from the crashed backend in your database subdirectory --- can you provide a backtrace from it?

Re: [GENERAL] Vacuum analyze vs just Vacuum

2000-05-28 Thread Bruce Momjian
> I would just like to check an assumption. I "vacuum analyze" regularly. I > have always assumed that this did a plain vacuum in addition to gathering > statistics. Is this true? The documentation never states explicitly one > way or the other but it almost suggests that they are independant

Re: [GENERAL] Vacuum analyze vs just Vacuum

2000-05-28 Thread Tom Lane
"Bryan White" <[EMAIL PROTECTED]> writes: > I would just like to check an assumption. I "vacuum analyze" regularly. I > have always assumed that this did a plain vacuum in addition to gathering > statistics. Is this true? Yes. There are some poorly-worded places in the docs that make it sound

Re: [GENERAL] vacuum analyze [table]

2000-01-20 Thread Bruce Momjian
> Am I the only one who cannot vacuum a named table? (Does it make sense to > just vacuum a single table?) > > regression=> \h vacuum > Command: VACUUM > Description: Clean and analyze a Postgres database > Syntax: > VACUUM [ VERBOSE ] [ ANALYZE ] [ table ] > VACUUM [ VERBOSE ] ANALYZE [ table [