forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit96a81c1
committed
pg_dump: Add dumpSchema and dumpData derivative flags.
Various parts of pg_dump consult the --schema-only and --data-onlyoptions to determine whether to run a section of code. While thisis simple enough for two mutually-exclusive options, it will becomeprogressively more complicated as more options are added. Inanticipation of that, this commit introduces new internal flagscalled dumpSchema and dumpData, which are derivatives of--schema-only and --data-only. This commit also removes theschemaOnly and dataOnly members from the dump/restore optionsstructs to prevent their use elsewhere.Note that this change neither adds new user-facing command-lineoptions nor changes the existing --schema-only and --data-onlyoptions.Author: Corey HuinkerReviewed-by: Jeff DavisDiscussion:https://postgr.es/m/CADkLM%3DcQgghMJOS8EcAVBwRO4s1dUVtxGZv5gLPfZkQ1nL1gzA%40mail.gmail.com1 parent648333a commit96a81c1
File tree
4 files changed
+144
-124
lines changed- src/bin/pg_dump
4 files changed
+144
-124
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
119 |
| - | |
120 |
| - | |
121 | 119 |
| |
122 | 120 |
| |
123 | 121 |
| |
| |||
158 | 156 |
| |
159 | 157 |
| |
160 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 |
| |
162 | 164 |
| |
163 | 165 |
| |
| |||
167 | 169 |
| |
168 | 170 |
| |
169 | 171 |
| |
170 |
| - | |
171 |
| - | |
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 |
| |
208 | 212 |
| |
209 | 213 |
| |
|
Lines changed: 19 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
| 150 | + | |
| 151 | + | |
150 | 152 |
| |
151 | 153 |
| |
152 | 154 |
| |
| |||
165 | 167 |
| |
166 | 168 |
| |
167 | 169 |
| |
168 |
| - | |
169 |
| - | |
| 170 | + | |
| 171 | + | |
170 | 172 |
| |
171 | 173 |
| |
172 | 174 |
| |
| |||
419 | 421 |
| |
420 | 422 |
| |
421 | 423 |
| |
422 |
| - | |
| 424 | + | |
423 | 425 |
| |
424 | 426 |
| |
425 |
| - | |
| 427 | + | |
426 | 428 |
| |
427 |
| - | |
| 429 | + | |
428 | 430 |
| |
429 | 431 |
| |
430 | 432 |
| |
| |||
438 | 440 |
| |
439 | 441 |
| |
440 | 442 |
| |
441 |
| - | |
| 443 | + | |
442 | 444 |
| |
443 | 445 |
| |
444 | 446 |
| |
| |||
824 | 826 |
| |
825 | 827 |
| |
826 | 828 |
| |
827 |
| - | |
| 829 | + | |
828 | 830 |
| |
829 | 831 |
| |
830 | 832 |
| |
| |||
1080 | 1082 |
| |
1081 | 1083 |
| |
1082 | 1084 |
| |
| 1085 | + | |
| 1086 | + | |
1083 | 1087 |
| |
1084 | 1088 |
| |
1085 | 1089 |
| |
| |||
1090 | 1094 |
| |
1091 | 1095 |
| |
1092 | 1096 |
| |
1093 |
| - | |
| 1097 | + | |
1094 | 1098 |
| |
1095 | 1099 |
| |
1096 | 1100 |
| |
| |||
1116 | 1120 |
| |
1117 | 1121 |
| |
1118 | 1122 |
| |
1119 |
| - | |
| 1123 | + | |
1120 | 1124 |
| |
1121 | 1125 |
| |
1122 | 1126 |
| |
| |||
3147 | 3151 |
| |
3148 | 3152 |
| |
3149 | 3153 |
| |
3150 |
| - | |
3151 |
| - | |
| 3154 | + | |
| 3155 | + | |
3152 | 3156 |
| |
3153 | 3157 |
| |
3154 |
| - | |
| 3158 | + | |
3155 | 3159 |
| |
3156 |
| - | |
| 3160 | + | |
3157 | 3161 |
| |
3158 | 3162 |
| |
3159 | 3163 |
| |
| |||
3171 | 3175 |
| |
3172 | 3176 |
| |
3173 | 3177 |
| |
3174 |
| - | |
3175 |
| - | |
| 3178 | + | |
| 3179 | + | |
3176 | 3180 |
| |
3177 | 3181 |
| |
3178 | 3182 |
| |
|
0 commit comments
Comments
(0)