Received: from server1.databill.com (cpe-66-1-197-67.az.sprintbbd.net [66.1.197.67]) by postgresql.org (Postfix) with ESMTP id 733A047591A for ; Thu, 21 Feb 2002 13:49:19 -0500 (EST) Received: from jmcgraw.databill.com (jmcgraw.databill.com [10.0.0.20]) by server1.databill.com (8.11.1/8.11.1) with ESMTP id g1LJ9S728764; Thu, 21 Feb 2002 12:09:28 -0700 (MST) (envelope-from jmcgraw@databill.com) Date: Thu, 21 Feb 2002 18:43:08 UTC From: Joel Mc Graw Reply-To: jmcgraw@databill.com Subject: Re: pg_dumpall won't work? To: tgl@sss.pgh.pa.us, jpmcgraw1@cox.net Cc: pgsql-admin@postgresql.org Message-ID: Organization: DataBill, LLC X-Mailer: TradeClient 0.9.0 [en] FreeBSD 4.2-RELEASE X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-Accept-Language: en Sensitivity: Public-Document MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII X-Archive-Number: 200202/265 X-Sequence-Number: 3418 On Thu, 07 Feb 2002 12:52:26 -0500, Tom Lane wrote: >Joel Mc Graw writes: >> I tried to run pg_dumpall and I got "strdup: failed to allocate >> memory". I tried to run it again and I get a segmentation fault. > >Strange. Can you provide a debugger backtrace from the segfault? >Another thing that might be useful is to log the queries being sent >to the server, so we can see what the last few were. Easiest way >to do that is > export PGOPTIONS="-d2" >(or equivalent for whatever shell you use) before running pg_dump. > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- OK, I finally have a moment to address this (God it's scary having a production DB and not being able to back it up....) Tom, I'm afraid I'm not quite the guru I'd like to be; can you (or anyone) provide guidance on getting a "debugger backtrace from the segfault"? The following shows the queries after exporting PGOPTIONS="-d2" - -- pg_dumpall (7.1.3) -- \connect template1 DELETE FROM pg_shadow WHERE usesysid <> (SELECT datdba FROM pg_database WHERE da tname = 'template0'); CREATE USER "jmcgraw" WITH SYSID 1001 CREATEDB NOCREATEUSER; CREATE USER "production" WITH SYSID 1002 CREATEDB NOCREATEUSER; CREATE USER "jbrucker" WITH SYSID 1006 NOCREATEDB NOCREATEUSER; DELETE FROM pg_group; -- -- Database production -- \connect template1 production CREATE DATABASE "production" WITH TEMPLATE = template0; \connect production production TIA for any and all help. ------------------------------------------------------ Joel Mc Graw DataBill, LLC 602-415-1234 ext. 13 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d-@ s: a C++++ UB++++ P-- L- E? W++ N w--- O? M+ V PS+++ PE++ Y+ PGP++ t+ 5++ X tv+ b+ DI++ G e++ h---- r+++ y++++ -----END GEEK CODE BLOCK-----