[PATCHES] Optimizer hook

2007-08-16 Thread Julius Stroffek
Attached is the patch for the optimizer hook as discussed in http://archives.postgresql.org/pgsql-hackers/2007-08/msg00362.php The hook declaration and definition to the same places as the planner_hook is located since the optimizer_hook relates to the part of the planner and I find it good to ha

[PATCHES] pgbench - segmentation fault

2007-08-22 Thread Julius Stroffek
Hi, pgbench contrib module is doing segmentation fault on Solaris when -d option is specified without -p option specified. This is because the -d option dumps the connection information and the default value of pgport variable is NULL which causes segmentation fault on Solaris when NULL is passe

Re: [PATCHES] Optimizer hook

2007-08-24 Thread Julius Stroffek
to this place only. Thanks Julo Julius Stroffek wrote: Attached is the patch for the optimizer hook as discussed in http://archives.postgresql.org/pgsql-hackers/2007-08/msg00362.php The hook declaration and definition to the same places as the planner_hook is located since the optimizer_hook

Re: [PATCHES] Optimizer hook

2007-09-25 Thread Julius Stroffek
Thanks for the comments. Regards Julius Stroffek *** ./src/backend/optimizer/path/allpaths.c.orig Sat May 26 20:23:01 2007 --- ./src/backend/optimizer/path/allpaths.c Tue Sep 25 11:37:19 2007 *** *** 37,43 --- 37,45 bool enable_geqo = false; /* just in case GUC doesn

Re: [PATCHES] Optimizer hook

2007-09-25 Thread Julius Stroffek
simply to provide a convenient way to replace only the join search order algorithm. Yes, thats true. I do not have a plan to do something more for now. Thank you Regards Julius Stroffek #include "postgres.h" #include "fmgr.h" #include "optimizer/geqo.h" #include

Re: [PATCHES] Optimizer hook

2007-09-25 Thread Julius Stroffek
#x27;ll explore that. Thanks Regards Julius Stroffek ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[PATCHES] Sun Studio on Linux spinlock patch

2008-03-05 Thread Julius Stroffek
Hi All, I have made PostgreSQL to compile on linux using sun studio with spinlock support. The patch is attached. Here is the explanation of changes I made: I renamed the following files solaris_x86.s solaris_sparch.s to sunstudio_x86.s sunstudio_sparch.s because the code is used on linux a

Re: [PATCHES] Sun Studio on Linux spinlock patch

2008-03-10 Thread Julius Stroffek
Tom Lane wrote: This patch seems broken in a number of ways. Why are you removing -DLINUX_PROFILE, for example? Are you sure you don't need -D_GNU_SOURCE? And why add -DSUNOS4_CC, which is a Solaris-specific define (not that we seem to be using it anywhere anymore)? Do we really have to have a