[HACKERS] CVS problems

2008-03-18 Thread Manolo SupaMA
Hi.

Yesterday I downloaded source code from CVS following

developer.postgresql.org/docs/postgres/cvs.html

First of all it had problems downloading files, INSTALL text file has not
been downloaded, for example.
Today that web page isn't even available...

That's probably causing the problems I'm getting during
make
make check

I won't annoy with those problems until I'm sure I downloaded correctly
souces from CVS.

In case it's just a problem of mine can you please suggest some
alternatives?

Regards, Manolo.


[HACKERS] Debugging PostgreSQL with GDB

2008-04-01 Thread Manolo SupaMA
Hi.

I have problems on how to debug PostgreSQL on Linux using GDB. I made some
changes to src/backend/utils/sort/tuplesort.c but it hangs while performing
run formation (where my changes are).

I configured it using

./configure --prefix="/usr/local/pgsql/8.3/" CFLAGS="-O0 -DTRACE_SORT"
--enable-debug --enable-cassert --enable-depend

and trying to debug it using

'gdb postmaster'
(which revealed to be not a very good idea) and
'gdb pg_ctl' followed by 'run -D /usr/local/psql/data'

This last choice allowed me to set a breackpoint on puttuple_common
(contained into tuplesort.c) but then I'm unable to run 'psql'.
http://pastebin.com/m6a97b4dd

I'm new on GDB and it's also my first postgrest patch. I just want some
suggestion to know if I'm on the right way or not.

Thanks for your time.

PS: I suppose I'll write some related  "HowTo Debug PostgreSQL with GDB -
Basics" for newbies like me.