Re: Docs pg_restore: Shouldn't there be a note about -n ? - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Docs pg_restore: Shouldn't there be a note about -n ?
Date
Msg-id 202602031834.gdtouimq464x@alvherre.pgsql
Whole thread Raw
In response to Re: Docs pg_restore: Shouldn't there be a note about -n ?  (Florents Tselai <florents.tselai@gmail.com>)
List pgsql-hackers
On 2026-Jan-05, Florents Tselai wrote:

> I consolidated the dependency warnings into the main "Notes" section for
> both pg_dump and pg_restore, removing the repetitive per-switch notes.
> 
>  For the -e switch in pg_dump, I replaced the removed dependency note
> with a specific warning that extension installation files (shared libs,
> control files) are not included.
>  I agree that maintaining a specific note for -e is the right move.
> Given the broad usage of pg_dump, it is helpful to be explicit that the
> dump only captures the SQL definitions and not the underlying system
> binaries.

Makes sense.  I have pushed this.

I just noticed though, that the issue in pg_restore applies not only to
the -n and -t switches, but also to -L (where you specify a file with a
list of objects to restore) and --filter.  Maybe we can this new
paragraph mention that as well.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"No renuncies a nada. No te aferres a nada."



pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: Additional message in pg_terminate_backend
Next
From: Andreas Karlsson
Date:
Subject: Re: GSoC 2026: Call for Mentors, Project Ideas and Project Idea Reviews