X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CA1D3D7C6E for ; Mon, 29 Aug 2005 14:57:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50979-05 for ; Mon, 29 Aug 2005 17:57:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4D9CBD7A1F for ; Mon, 29 Aug 2005 14:57:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7THvYxj011274; Mon, 29 Aug 2005 13:57:35 -0400 (EDT) To: Jeff Trout Cc: postgres performance Subject: Re: OSX & Performance In-reply-to: <486EB962-5B80-49B4-AF01-0C2DD77CC9EF@torgo.978.org> References: <26476.1125259249@sss.pgh.pa.us> <486EB962-5B80-49B4-AF01-0C2DD77CC9EF@torgo.978.org> Comments: In-reply-to Jeff Trout message dated "Mon, 29 Aug 2005 13:27:25 -0400" Date: Mon, 29 Aug 2005 13:57:34 -0400 Message-ID: <11273.1125338254@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/495 X-Sequence-Number: 14242 Jeff Trout writes: > On Aug 28, 2005, at 4:00 PM, Tom Lane wrote: >> I see -O2 when building PG (CVS tip) on a fully up-to-date 10.4.2 >> machine. Maybe something odd in your environment, like a preset >> CFLAGS setting? > 8.0.3 doesn't have any optimization flags > 8.1beta1 doesn't have any optimization > ie: gcc -no-cpp-precomp -Wall -Wmissing-prototypes -Wpointer-arith - > Wdeclaration-after-statement -Wold-style-definition -Wendif-labels - > fno-strict-aliasing -I../../src/port -I../../src/include -c > thread.c -o thread_srv.o You must have CFLAGS set to empty in your build environment, because configure will certainly default to -O2 if not overridden. It works fine for me on OS X. Maybe you want to trace through the configure script and see why it's doing something else? regards, tom lane