On Monday, August 1, 2016, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> So it looks to me like an appropriate fix would be basically this
> in _printTocEntry():
>
> - if (!ropt->dropSchema)
> + if (!(ropt->dropSchema && !ropt->createDB))
>
> plus some suitable adjustment of the comment. I'm too lazy/tired
> to test this theory right now, though.
>
>
I concurred on the original thread bug report thread.
https://www.postgresql.org/message-id/CAKFQuwbYXU-z0uxnLWV_1awd16JiMnJnKnMQgYrUDJT4uqmmjQ%40mail.gmail.com
David J.