On Thu, Oct 27, 2016 at 2:11 AM, amul sul <sulamul@gmail.com> wrote:
> selectDumpableExtension() function skip
> s dump of
> built-in extensions in case of binary-upgrade only,
> why not in normal
> dump
> ?
> Can't we assume those will already be installed in the target database
> at restore
> ?
There's a comment in dumpExtension() that explains it.
/* * In a regular dump, we use IF NOT EXISTS so that there isn't a * problem if the extension
alreadyexists in the target database; * this is essential for installed-by-default extensions such as *
plpgsql. * * In binary-upgrade mode, that doesn't work well, so instead we skip * built-in
extensionsbased on their OIDs; see * selectDumpableExtension. */
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company