[PERFORM] compiling 7.4.1 on Solaris 9

2004-02-28 Thread teknokrat
can anyone tell me what the best way to compile postgresql 7.4.1 on 
Solaris 9 (UltraSparcIII)  is? I have latest gmake and gcc installed. I 
was going to use CFLAGS=-O2 -fast -mcpu=ultrasparc based on snippets 
I've read about the place. Would using -O3 be an improvement?

thanks

---(end of broadcast)---
TIP 6: Have you searched our list archives?
  http://archives.postgresql.org


[PERFORM] performance of foreign key constraints

2003-08-28 Thread teknokrat
I have a table that has about 20 foreign key constraints on it. I think 
this is a bit excessive and am considering removing them ( they are all 
related to the same table and I don't think there is much chance of any 
integrity violations ). Would this improve performance or not?

thanks

---(end of broadcast)---
TIP 9: the planner will ignore your desire to choose an index scan if your
 joining column's datatypes do not match


Re: [PERFORM] performance of foreign key constraints

2003-08-28 Thread teknokrat
Stephan Szabo wrote:

On Thu, 28 Aug 2003, teknokrat wrote:


I have a table that has about 20 foreign key constraints on it. I think
this is a bit excessive and am considering removing them ( they are all
related to the same table and I don't think there is much chance of any
integrity violations ). Would this improve performance or not?


It depends on your frequency of inserts/updates to the table with the
constraint and the frequency of update/delete to the table(s) being
refered to. My guess is probably.  You may wish to leave some of the
constraints (decide which are the most important), but 20 does seem a bit
excessive in general.
The references are all to the same table i.e. they are employee ids, so 
leaving some and not others would make no sense. The table has no 
deletes, small amount of inserts and moderate amount of updates. However 
there are many selects and its their performance I am most concerned with.

thanks

---(end of broadcast)---
TIP 8: explain analyze is your friend