Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
Date: 2025-12-08 18:23:28
Message-ID: aTcXoH--U0UVdUKo@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-12-08 18:25:16 Re: pg_dump:qemu: uncaught target signal 7 (Bus error) - core dumped
Previous Message Álvaro Herrera 2025-12-08 18:23:16 Re: vacuumdb: add --dry-run