forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbe85727
committed
Use PREPARE/EXECUTE for repetitive per-object queries in pg_dump.
For objects such as functions, pg_dump issues the same secondarydata-collection query against each object to be dumped. This can'treadily be refactored to avoid the repetitive queries, but we canPREPARE these queries to reduce planning costs.This patch applies the idea to functions, aggregates, operators, anddata types. While it could be carried further, the remaining sorts ofobjects aren't likely to appear in typical databases enough times tobe worth worrying over. Moreover, doing the PREPARE is likely to be anet loss if there aren't at least some dozens of objects to apply theprepared query to.Discussion:https://postgr.es/m/7d7eb6128f40401d81b3b7a898b6b4de@W2012-02.nidsa.loc1 parent9895961 commitbe85727
2 files changed
+532
-366
lines changedLines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 |
| |
62 | 79 |
| |
63 | 80 |
| |
| |||
214 | 231 |
| |
215 | 232 |
| |
216 | 233 |
| |
| 234 | + | |
| 235 | + | |
| 236 | + | |
217 | 237 |
| |
218 | 238 |
| |
219 | 239 |
| |
|
0 commit comments
Comments
(0)