Avoid useless retrieval of defaults and check constraints in pg_dump -a - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Avoid useless retrieval of defaults and check constraints in pg_dump -a
Date
Msg-id 20200712054850.GA92357@nol
Whole thread Raw
Responses Re: Avoid useless retrieval of defaults and check constraints in pg_dump -a  (Justin Pryzby <pryzby@telsasoft.com>)
Re: Avoid useless retrieval of defaults and check constraints in pg_dump -a  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
Hi,

Currently, getTableAttrs() always retrieves info about columns defaults and
check constraints, while this will never be used if --data-only option if used.
This seems like a waste of resources, so here's a patch to skip those parts
when the DDL won't be generated.

Attachment

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Default setting for enable_hashagg_disk
Next
From: Rafia Sabih
Date:
Subject: Re: Parallel copy