Commit 5423853
committed
Avoid retrieval of CHECK constraints and DEFAULT exprs in data-only dump
Those extra queries are not necessary when doing a data-only dump. With
this change, this means that the dependencies between CHECK/DEFAULT and
the parent table are not tracked anymore for a data-only dump. However,
these dependencies are only used for the schema generation and we have
never guaranteed that a dump can be reloaded if a CHECK constraint uses
a custom function whose behavior changes when loading the data, like
when using cross-table references in the CHECK function.
Author: Julien Rouhaud
Reviewed-by: Daniel Gustafsson, Michael Paquier
Discussion: https://postgr.es/m/20200712054850.GA92357@nol1 parent c8aeaf3 commit 5423853
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8644 | 8644 | | |
8645 | 8645 | | |
8646 | 8646 | | |
8647 | | - | |
| 8647 | + | |
| 8648 | + | |
8648 | 8649 | | |
8649 | | - | |
| 8650 | + | |
8650 | 8651 | | |
8651 | 8652 | | |
8652 | 8653 | | |
| |||
8731 | 8732 | | |
8732 | 8733 | | |
8733 | 8734 | | |
8734 | | - | |
| 8735 | + | |
| 8736 | + | |
8735 | 8737 | | |
8736 | | - | |
| 8738 | + | |
8737 | 8739 | | |
8738 | 8740 | | |
8739 | 8741 | | |
| |||
0 commit comments