Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Matthew Hixson
Why couldn't Postgres learn for itself what the optimal performance settings would be? The easy one seems to be the effective_cache_size. Top shows us this information. Couldn't Postgres read that value from the same place top reads it instead of relying on a config file value? Seems like it

Re: [PERFORM] Extreme high load averages

2003-07-07 Thread Dennis Björklund
On Sun, 6 Jul 2003, Martin Foster wrote: > The processor seems to be purposely sitting there twiddling it's thumbs. > Which leads me to believe that perhaps the nice levels have to be > changed on the server itself? It could also be all the usual things that affect performance. Are your quer

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Andrew Sullivan
On Sat, Jul 05, 2003 at 02:12:56PM -0700, Sean Chittenden wrote: > The SGML docs aren't in the DBA's face and are way out of the way for > DBAs rolling out a new system or who are tuning the system. SGML == > Developer, conf == DBA. I could not disagree more. I'd say more like, if the dba won't

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Matthew Nuzum
> -Original Message- > From: [EMAIL PROTECTED] [mailto:pgsql-performance- > [EMAIL PROTECTED] On Behalf Of Andrew Sullivan > Sent: Monday, July 07, 2003 5:23 AM > To: [EMAIL PROTECTED] > Subject: Re: [PERFORM] Moving postgresql.conf tunables into 2003... > > On Sat, Jul 05, 2003 at 02:12:

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Michael Mattox
> Are you willing to say that the PostgreSQL database system should only be > used by DBAs? I believe that Postgres is such a good and useful tool that > anyone should be able to start using it with little or no barrier > to entry. This is a good point. After reading previous responses I was sta

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Tom Lane
"Matthew Nuzum" <[EMAIL PROTECTED]> writes: > Are you willing to say that the PostgreSQL database system should only be > used by DBAs? I believe that Postgres is such a good and useful tool that > anyone should be able to start using it with little or no barrier to entry. I quite agree. But the

[PERFORM] Optimizer differences between 7.2 and 7.3

2003-07-07 Thread Jeff Boes
Our production database is running under 7.2.4; our test database running almost the same data is at 7.3.3. One table has about 400,000 rows in each schema. A query against an indexed column uses an index scan under 7.2.4, but a sequential scan under 7.3.3. A count of the table in question shows t

Re: [PERFORM] Optimizer differences between 7.2 and 7.3

2003-07-07 Thread Richard Huxton
On Monday 07 Jul 2003 3:17 pm, Jeff Boes wrote: > Our production database is running under 7.2.4; our test database > running almost the same data is at 7.3.3. One table has about 400,000 > rows in each schema. A query against an indexed column uses an index > scan under 7.2.4, but a sequential sc

[PERFORM] optimizer picks smaller table to drive nested loops?

2003-07-07 Thread Greg Stark
Someone asked a hypothetical question about how to retrieve all records of a table twice in SQL. It got me thinking about whether there was a way to do this efficiently. "Obviously" if you do it using the UNION ALL approach postgres isn't going to do two separate scans, doing it otherwise would b

Re: [PERFORM] Extreme high load averages

2003-07-07 Thread scott.marlowe
On Sun, 6 Jul 2003, Martin Foster wrote: > Shridhar Daithankar wrote: > > > > It gives hint to psotgresql how much file system cache is available in the > > system. > > > > You have 1GB memory and your application requirement does not exceed 400MB. So > > OS can use roughly 600MB for file sys

Re: [PERFORM] PostgreSQL vs. MySQL

2003-07-07 Thread scott.marlowe
On Mon, 7 Jul 2003, Brian Tarbox wrote: > Oddly enough, the particular application in question will have an extremely > small user base...perhaps a few simultainous users at most. > > As to the testing, I neglected to say early in this thread that my manager > instructed me _not_ to do further pe

Re: [PERFORM] optimizer picks smaller table to drive nested loops?

2003-07-07 Thread Randy Neumann
On Monday 07 July 2003 12:22 pm, you wrote: > loops=1) -> Seq Scan on region (cost=0.00..2813.00 rows=2767 width=104) > (actual time=0.03..123.44 rows=2767 loops=2) Total runtime: 566.24 msec > (9 rows) > > (I'm also a bit puzzled why the optimizer is calculating that 2,813 * 2 = > 5,534) You s

Re: [PERFORM] PostgreSQL vs. MySQL

2003-07-07 Thread scott.marlowe
On Fri, 4 Jul 2003, Brian Tarbox wrote: > I'm actually leaving this list but I can answer this question. Our results > were with a single user and we were running Inodb. We were running on > RedHat 8.0 / 9.0 with vanilla linux settings. Hi Brian, I just wanted to add that if you aren't testing

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Chris Travers
Matthew Nuzum wrote: I'm highly resistant to/disappointed in this attitude and firmly believe that there are well understood algorithms that DBAs use to diagnose and solve performance problems. It's only a black art because it hasn't been documented. Performance tuning isn't voodoo, it's adjusti

Re: [PERFORM] [pgsql-advocacy] About the default performance

2003-07-07 Thread scott.marlowe
I'm willing to help too. I'm basically a DBA / developer type, with mild C hacking skills (I develop in PHP, so my C coding is quite rusty nowadays.) If nothing else testing on different equipment / OSes. On Fri, 4 Jul 2003, Josh Berkus wrote: > Kaarel: > > (cross-posted back to Performance

Re: [PERFORM] PostgreSQL vs. MySQL

2003-07-07 Thread Brian Tarbox
Oddly enough, the particular application in question will have an extremely small user base...perhaps a few simultainous users at most. As to the testing, I neglected to say early in this thread that my manager instructed me _not_ to do further performance testing...so as a good consultant I compl

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Jim C. Nasby
On Mon, Jul 07, 2003 at 10:08:50AM -0700, Chris Travers wrote: > In my opinion, a serious RDBMS system will *always* require the admin to > be doing research in order to learn how to use it effectively. We are > not talking about a word processor here. > > That being said, I think that a good p

Re: [PERFORM] Extreme high load averages

2003-07-07 Thread Martin Foster
scott.marlowe wrote: I would try a few things. First off, effective_cache_size is the size measured in 8k blocks, so 512 would be a setting of 4 Megs. Probably a little low. If you average 512Meg free, that would be a setting of 65536. Note that the higer the effective_cache_size, the more

Re: [PERFORM] Extreme high load averages

2003-07-07 Thread Matthew Nuzum
> A common problem is a table like this: > > create table test (info text, id int8 primary key); > insert into test values ('ted',1); > .. a few thousand more inserts; > vacuum full; > analyze; > select * from test where id=1; > > will result in a seq scan, always, because the 1 by itself is > au