Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread me
Try a), b), and c) in order on the "offending" tables as they address the problem at increasing cost... thanks alot for the detailed information! the entire concept of vacuum isn't yet that clear to me, so your explanations and hints are very much appreciated. i'll defenitely try these steps t

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread Christopher Browne
>>> in our db system (for a website), i notice performance boosts after >>> a vacuum >>> full. but then, a VACUUM FULL takes 50min+ during which the db is >>> not really >>> accessible to web-users. is there another way to perform >>> maintenance tasks >>> AND leaving the db fully operable and acce

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread me
in our db system (for a website), i notice performance boosts after a vacuum full. but then, a VACUUM FULL takes 50min+ during which the db is not really accessible to web-users. is there another way to perform maintenance tasks AND leaving the db fully operable and accessible? You're not doi

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread Tom Lane
<[EMAIL PROTECTED]> writes: > in our db system (for a website), i notice performance boosts after a vacuum > full. but then, a VACUUM FULL takes 50min+ during which the db is not really > accessible to web-users. is there another way to perform maintenance tasks > AND leaving the db fully operab

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread me
That does sound like a lack-of-vacuuming problem. If the performance goes back where it was after VACUUM FULL, then you can be pretty sure of it. Note that autovacuum is not designed to fix this for you: it only ever issues regular vacuum not vacuum full. in our db system (for a website), i no

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread Tom Lane
Antoine <[EMAIL PROTECTED]> writes: > So... seeing as I didn't really do any investigation as to setting > default sizes for storage and the like - I am wondering whether our > performance problems (a programme running 1.5x slower than two weeks > ago) might not be coming from the db (or rather,

Re: [PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread Andrew Sullivan
On Mon, Jan 16, 2006 at 11:07:52PM +0100, Antoine wrote: > performance problems (a programme running 1.5x slower than two weeks > ago) might not be coming from the db (or rather, my maintaining of it). > I have turned on stats, so as to allow autovacuuming, but have no idea > whether that could

[PERFORM] new to postgres (and db management) and performance already a problem :-(

2006-01-16 Thread Antoine
Hi, We have a horribly designed postgres 8.1.0 database (not my fault!). I am pretty new to database design and management and have really no idea how to diagnose performance problems. The db has only 25-30 tables, and half of them are only there because our codebase needs them (long story, ag

Re: [PERFORM] Use of * affect the performance

2006-01-16 Thread Qingqing Zhou
"Marcos" <[EMAIL PROTECTED]> wrote > > I always think that use of * in SELECT affected in the performance, > becoming the search slowest. > > But I read in the a Postgres book's that it increases the speed of > search. > > And now What the more fast? > If you mean use "*" vs. "explicitely nam

Re: [PERFORM] Suspending SELECTs

2006-01-16 Thread Craig A. James
Alessandro Baretta <[EMAIL PROTECTED]> writes: I am aware that what I am dreaming of is already available through cursors, but in a web application, cursors are bad boys, and should be avoided. What I would like to be able to do is to plan a query and run the plan to retreive a limited number of

Re: [PERFORM] Suspending SELECTs

2006-01-16 Thread Mark Lewis
On Mon, 2006-01-16 at 11:13 +0100, Alessandro Baretta wrote: > I am aware that what I am dreaming of is already available through cursors, > but > in a web application, cursors are bad boys, and should be avoided. What I > would > like to be able to do is to plan a query and run the plan to ret

Re: [PERFORM] Suspending SELECTs

2006-01-16 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > I wonder if we could have a way to "suspend" a transaction and restart > it later in another backend. I think we could do something like this > using the 2PC machinery. > Not that I'm up for coding it; just an idea that crossed my mind. It's not imposs

Re: [PERFORM] Suspending SELECTs

2006-01-16 Thread Alvaro Herrera
Tom Lane wrote: > Alessandro Baretta <[EMAIL PROTECTED]> writes: > > I am aware that what I am dreaming of is already available through > > cursors, but in a web application, cursors are bad boys, and should be > > avoided. What I would like to be able to do is to plan a query and run > > the plan

Re: [PERFORM] Suspending SELECTs

2006-01-16 Thread Tom Lane
Alessandro Baretta <[EMAIL PROTECTED]> writes: > I am aware that what I am dreaming of is already available through > cursors, but in a web application, cursors are bad boys, and should be > avoided. What I would like to be able to do is to plan a query and run > the plan to retreive a limited numb

[PERFORM] Use of * affect the performance

2006-01-16 Thread Marcos
Hi, I always think that use of * in SELECT affected in the performance, becoming the search slowest. But I read in the a Postgres book's that it increases the speed of search. And now What the more fast? Thanks ---(end of broadcast)--- TIP 5

Re: [PERFORM] Materialized Views

2006-01-16 Thread Michael Riess
Thanks! Of course I know that I can build materialized views with triggers, but so far I've avoided using triggers altogether ... I would really appreciate something like "create view foo (select * from b) materialize on query". But I'll look into your blog entry, thanks again! Mike On Mon

Re: [PERFORM] Materialized Views

2006-01-16 Thread me
hi mike In particular I'm interested in a view which materializes whenever queried, and is invalidated as soon as underlying data is changed. from the german pgsql list earlier last week: http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html this seems to be pretty much what

Re: [PERFORM] Materialized Views

2006-01-16 Thread Frank Wiles
On Mon, 16 Jan 2006 15:36:53 +0100 Michael Riess <[EMAIL PROTECTED]> wrote: > Hi, > > I've been reading an interesting article which compared different > database systems, focusing on materialized views. I was wondering how > the postgresql developers feel about this feature ... is it planned >

[PERFORM] Materialized Views

2006-01-16 Thread Michael Riess
Hi, I've been reading an interesting article which compared different database systems, focusing on materialized views. I was wondering how the postgresql developers feel about this feature ... is it planned to implement materialized views any time soon? They would greatly improve both perfor

[PERFORM] Suspending SELECTs

2006-01-16 Thread Alessandro Baretta
I am aware that what I am dreaming of is already available through cursors, but in a web application, cursors are bad boys, and should be avoided. What I would like to be able to do is to plan a query and run the plan to retreive a limited number of rows as well as the executor's state. This way