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
Re: Avoid useless retrieval of defaults and check constraints in pg_dump -a
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