Re: [HACKERS] Debugging initdb breakage

2010-10-17 Thread Greg Smith
David Fetter wrote: Where should we preserve this, other than the mailing list archives? http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD has most of the other trivia in this area, so I just added Alvaro's technique to the bottom of it with

Re: [HACKERS] Debugging initdb breakage

2010-10-12 Thread David Fetter
On Tue, Oct 12, 2010 at 10:05:57PM +0200, Dimitri Fontaine wrote: > Alvaro Herrera writes: > > As a note, I've had luck finding bootstrap-time bugs by manually > > feeding the bootstrapping commands into bootstrap mode, with a > > leftover dir from "initdb --noclean". This has helped a few times

Re: [HACKERS] Debugging initdb breakage

2010-10-12 Thread Dimitri Fontaine
Alvaro Herrera writes: > As a note, I've had luck finding bootstrap-time bugs by manually feeding > the bootstrapping commands into bootstrap mode, with a leftover dir from > "initdb --noclean". This has helped a few times that there has been no > PANIC but just a FATAL or ERROR, for example. It

Re: [HACKERS] Debugging initdb breakage

2010-10-12 Thread Alvaro Herrera
Excerpts from Dimitri Fontaine's message of dom oct 10 17:38:01 -0300 2010: > Hi, > > So I'm beginning to work on the extension support for dump and restore, > and that begins with a new pg_extension catalog. I managed to break > initdb already, of course, but I'm fighting my way out — no luck wit

Re: [HACKERS] Debugging initdb breakage

2010-10-11 Thread Dimitri Fontaine
Tom Lane writes: > Might have something to do with using the same OID for the catalog > and its index ... Ahah, that's how obvious it was, thank you. I feel ashamed, but at the same time, thanks to your answer, it now feels like the week-end was a good preparatory step for opening this week. Bac

Re: [HACKERS] Debugging initdb breakage

2010-10-10 Thread Tom Lane
Dimitri Fontaine writes: > How to have gdb help me? What's my error, that I guess is obvious? Might have something to do with using the same OID for the catalog and its index ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To

Re: [HACKERS] Debugging initdb breakage

2010-10-10 Thread Heikki Linnakangas
On 10.10.2010 23:38, Dimitri Fontaine wrote: So I'm beginning to work on the extension support for dump and restore, and that begins with a new pg_extension catalog. I managed to break initdb already, of course, but I'm fighting my way out — no luck with gdb, it won't catch the Assert failure and