Re: [PERFORM] extract(year from date) doesn't use index but maybe could?

2015-04-19 Thread Adam Tauno Williams
me values are an order of magnitude more complicated than people expect. > Shouldn't this is an optimization handled by the database > so the user doesn't need to hand optimize these differences? Sometimes "d >= '1900-01-01'" and "EXTRACT(year from d) >

Re: [PERFORM] SATA drives performance

2009-12-24 Thread Adam Tauno Williams
This isn't true. IBMs IPS series controllers can the checked and configured via the ipssend utility that works very well in 2.6.x LINUX. "Scott Marlowe" wrote: >On Thu, Dec 24, 2009 at 11:09 AM, Richard Neill wrote: >> >> >> Jeremy Harris wrote: >>> >>> On 12/24/2009 05:12 PM, Richard Neill w

Re: [PERFORM] Compression in PG

2009-11-01 Thread Adam Tauno Williams
On Sun, 2009-11-01 at 18:53 +0200, Shaul Dar wrote: > I am aware of the TOAST mechanism (actually complained about it in > this forum...). The text fields I have are below the limits that > trigger this mechanism, Have you proved somehow that compressing tiny values has any value? > and also I m

Re: [PERFORM] Best suiting OS

2009-10-05 Thread Adam Tauno Williams
On Mon, 2009-10-05 at 09:37 -0400, Jean-David Beyer wrote: > Robert Haas wrote (in part): > > Also, I'd just like to mention that vi is a much better editor than > > emacs. > That is not my impression. I have used vi from when it first came out (I > used ed before that) until about 1998 when I firs

Re: Maybe OT, not sure Re: [PERFORM] Best suiting OS

2009-10-05 Thread Adam Tauno Williams
> Maybe - if the only thing the server is running is PostgreSQL. Show of > hands - how many users who ONLY install PostgreSQL, and use a bare > minimum OS install, choosing to not run any other software? Now, how > many people ALSO run things like PHP, and require software more > up-to-date tha

Re: [PERFORM] Best suiting OS

2009-10-05 Thread Adam Tauno Williams
On Sun, 2009-10-04 at 10:05 -0400, Mark Mielke wrote: > On 10/01/2009 03:44 PM, Denis Lussier wrote: > > I'm a BSD license fan, but, I don't know much about *BSD otherwise > > (except that many advocates say it runs PG very nicely). > > On the Linux side, unless your a dweeb, go with a newer, popu

Re: [PERFORM] Quad Xeon or Quad Opteron?

2008-05-23 Thread Adam Tauno Williams
> Also, based on what I've seen on this list rather than personal > experience, you might want to give more thought to your storage than to > CPU power. The usual thrust of advice seems to be: Get a fast, battery > backed RAID controller. "Fast" does not mean "fast sequential I/O in > ideal conditi

Re: [PERFORM] Example web access to Postgres DB

2008-02-17 Thread Adam Tauno Williams
connect from a simple Java application (without any of the app server overhead) otherwise you have no idea who/what you are measuring [unless your a J2EE guru]. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.openg

Re: [PERFORM] Hardware for PostgreSQL

2007-11-01 Thread Adam Tauno Williams
t certainly wrong about this; think "syslog" -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] Linux mis-reporting memory

2007-10-02 Thread Adam Tauno Williams
> 0 UNION SELECT 'INDEX:' || relname, (idx_blks_read + idx_blks_hit) AS heap_hits, ROUND(((idx_blks_hit)::NUMERIC / (idx_blks_read + idx_blks_hit) * 100), 2) FROM pg_statio_user_tables WHERE (idx_blks_read + idx_blks_hit) > 0 -- Adam Tauno Williams, Network & Systems Administrato

Re: [PERFORM] Linux mis-reporting memory

2007-09-20 Thread Adam Tauno Williams
e "ipcs" to show allocated shared memory segments. One of the better articles on LINUX & memory management - http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://w

Re: [PERFORM] [Again] Postgres performance problem

2007-09-14 Thread Adam Tauno Williams
> > Isn't that the point of the documentation? I mean, if the existing, > > official manual has been demonstrated (through countless mailing list > > help requests) to not sufficiently explain a given topic, shouldn't > > it be revised? Or it proves that no one bothers to read the docs. > > One

Re: [PERFORM] Performance on 8CPU's and 32GB of RAM

2007-09-05 Thread Adam Tauno Williams
ocks it for all other users. This isn't true; the mode of a file open is up to the application. Possibly lots of Windows applications are stupid or sloppy in how they manage files but that isn't a flaw in NTFS. -- Adam Tauno Williams, Network & Systems Administrato

Re: [PERFORM] Shared memory usage

2007-08-27 Thread Adam Tauno Williams
0 530m 71m 59m R 10 1.2 0:50.71 postmaster > 10195 postgres 15 0 536m 84m 66m S6 1.4 1:11.72 postmaster -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org

Re: [PERFORM] schema design question

2007-08-19 Thread Adam Tauno Williams
sand object persistence systems out there, not much to be gained from re-inventing the wheel. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org ---(e

Re: [PERFORM] schema design question

2007-08-19 Thread Adam Tauno Williams
of classes that are similar but not the same. They all > have attributes/properties (type is probably String), e.g. (in pseudo > code): Use table inheritance. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - htt

Re: [PERFORM] Simple select hangs while CPU close to 100%

2007-07-22 Thread Adam Tauno Williams
> I’m having this very disturbing problem. I got a table with about > 100,000 rows in it. Our software deletes the majority of these rows > and then bulk loads another 100,000 rows into the same table. All this > is happening within a single transaction. I then perform a simple > “select count(*)

Re: [PERFORM] How to use a trigger to write rows to a remote server

2007-07-18 Thread Adam Tauno Williams
You get logging, transactions, and other features thrown in. http://www.xmlblaster.org/xmlBlaster/doc/requirements/contrib.replication.html -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org

Re: [PERFORM] PostgreSQL Configuration Tool for Dummies

2007-06-22 Thread Adam Tauno Williams
On Fri, 2007-06-22 at 02:32 -0400, Greg Smith wrote: > On Thu, 21 Jun 2007, Scott Marlowe wrote: > > > Generally I agree, however, how about a first switch, for beginner / > > intermediate / advanced. > > You're describing a perfectly reasonable approach for a second generation > tool in this a

Re: [PERFORM] pg_stats how-to?

2007-05-13 Thread Adam Tauno Williams
ec2.html http://www.postgresql.org/docs/8.0/interactive/monitoring-stats.html Also just trolling on this list is useful. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org ---

Re: [PERFORM] [OT] Best OS for Postgres 8.2

2007-05-08 Thread Adam Tauno Williams
material. You need to do the slow slogging work of site/application specific optimization and tuning; that is where you will find significant performance improvements. - Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http: