Dump COMMENT ON SCHEMA public.

Noah Misch <noah@leadboat.com>

Commit: 7ac10f692054e2690aa6f80efdd98bd283c94b10
Author: Noah Misch <noah@leadboat.com>
Date: 2021-06-29T01:34:55Z
Releases: 15.0
Dump COMMENT ON SCHEMA public.

As we do for other attributes of the public schema, omit the COMMENT
command when its payload would match what initdb had installed.  For
dumps that do carry this new COMMENT command, non-superusers restoring
them are likely to get an error.

Reviewed by Asif Rehman.

Discussion: https://postgr.es/m/ab48a34c-60f6-e388-502a-3e5fe46a2dae@postgresfriends.org

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +66 −18
src/bin/pg_dump/t/002_pg_dump.pl modified +12 −2
src/include/catalog/pg_namespace.dat modified +1 −0

Discussion