Re: Extensions not dumped when --schema is used

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Julien Rouhaud <rjuju123(at)gmail(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Extensions not dumped when --schema is used
Date: 2021-02-20 23:14:45
Message-ID: YDGX5TZ6vS5YC8vk@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Feb 20, 2021 at 10:39:24PM +0100, Guillaume Lelarge wrote:
> Le sam. 20 févr. 2021 à 17:31, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> a écrit :
>> I haven't read the patch, but the behavior I would expect is:
>>
>> 1. If --extension=pattern is given, then extensions matching the
>> pattern are included in the dump, regardless of other switches.
>> (Conversely, use of --extension doesn't affect choices about what
>> other objects are dumped.)
>>
>> 2. Without --extension, the behavior is backward compatible,
>> ie, dump extensions in an include_everything dump but not
>> otherwise.
>
> Yes, that's what it's supposed to do.

Okay, that sounds fine to me. Thanks for confirming.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-02-20 23:18:38 Re: some pointless HeapTupleHeaderIndicatesMovedPartitions calls
Previous Message Alvaro Herrera 2021-02-20 22:20:24 Re: Printing page request trace from buffer manager