Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
Date
Msg-id aTcXoH--U0UVdUKo@nathan
Whole thread Raw
In response to Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Dec 08, 2025 at 01:20:13PM -0500, Tom Lane wrote:
> Don't do that.  Generally speaking, you don't want installed files to
> be writable at all by ordinary user accounts ... but if they are,
> for heaven's sake don't cd into those directories before doing work.
> You're just setting yourself up for trouble.

Yeah, I got a permission error when I tried this:

    /usr/local/pgsql/bin$ ./pg_dump -Ft -s -c  -v -f postgres schema_clean.tar1
    pg_dump: error: could not open TOC file "postgres" for output: Permission denied

So you'd have to either make the binary writable or use "sudo" or something
to get in this situation, which is hopefully uncommon.

-- 
nathan



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: vacuumdb: add --dry-run
Next
From: Nathan Bossart
Date:
Subject: Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped