Re: Extensions not dumped when --schema is used - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Extensions not dumped when --schema is used
Date
Msg-id CAA722E2-218F-46F8-BE3A-2D7B4CB6A877@yesql.se
Whole thread Raw
In response to Re: Extensions not dumped when --schema is used  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-hackers
> On 20 May 2020, at 11:38, Guillaume Lelarge <guillaume@lelarge.info> wrote:

> Actually, "dump all extensions" (#3) would make sense to me, and has my vote.

Wouldn't that open for another set of problems when running with --schema=bar
and getting errors on restoring for relocatable extensions like these:

    CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA foo;

Only dumping extensions depended on has the same problem of course.

> People dump databases, schemas, and tables. Theu usually don't know which extensions those objects depend on.

That I totally agree with, question is how we best can help users here.

cheers ./daniel


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgindent vs dtrace on macos
Next
From: Daniel Gustafsson
Date:
Subject: Re: pgindent vs dtrace on macos