forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5a28324

Amit Kapila
Allow publishing the tables of schema.
A new option "FOR ALL TABLES IN SCHEMA" in Create/Alter Publication allowsone or more schemas to be specified, whose tables are selected by thepublisher for sending the data to the subscriber.The new syntax allows specifying both the tables and schemas. For example:CREATE PUBLICATION pub1 FOR TABLE t1,t2,t3, ALL TABLES IN SCHEMA s1,s2;ORALTER PUBLICATION pub1 ADD TABLE t1,t2,t3, ALL TABLES IN SCHEMA s1,s2;A new system table "pg_publication_namespace" has been added, to maintainthe schemas that the user wants to publish through the publication.Modified the output plugin (pgoutput) to publish the changes if therelation is part of schema publication.Updates pg_dump to identify and dump schema publications. Updates the \dfamily of commands to display schema publications and \dRp+ variant willnow display associated schemas if any.Author: Vignesh C, Hou Zhijie, Amit KapilaSyntax-Suggested-by: Tom Lane, Alvaro HerreraReviewed-by: Greg Nancarrow, Masahiko Sawada, Hou Zhijie, Amit Kapila, Haiying Tang, Ajin Cherian, Rahila Syed, Bharath Rupireddy, Mark DilgerTested-by: Haiying TangDiscussion:https://www.postgresql.org/message-id/CALDaNm0OANxuJ6RXqwZsM1MSY4s19nuH3734j4a72etDwvBETQ@mail.gmail.com1 parentf0b051e commit5a28324
File tree
46 files changed
+2830
-212
lines changed- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- nodes
- parser
- replication/pgoutput
- utils/cache
- bin
- pg_dump
- t
- psql
- include
- catalog
- commands
- nodes
- utils
- test/regress
- expected
- sql
- tools/pgindent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+2830
-212
lines changedLines changed: 69 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
243 | 248 |
| |
244 | 249 |
| |
245 | 250 |
| |
| |||
6176 | 6181 |
| |
6177 | 6182 |
| |
6178 | 6183 |
| |
| 6184 | + | |
| 6185 | + | |
| 6186 | + | |
| 6187 | + | |
| 6188 | + | |
| 6189 | + | |
| 6190 | + | |
| 6191 | + | |
| 6192 | + | |
| 6193 | + | |
| 6194 | + | |
| 6195 | + | |
| 6196 | + | |
| 6197 | + | |
| 6198 | + | |
| 6199 | + | |
| 6200 | + | |
| 6201 | + | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
| 6207 | + | |
| 6208 | + | |
| 6209 | + | |
| 6210 | + | |
| 6211 | + | |
| 6212 | + | |
| 6213 | + | |
| 6214 | + | |
| 6215 | + | |
| 6216 | + | |
| 6217 | + | |
| 6218 | + | |
| 6219 | + | |
| 6220 | + | |
| 6221 | + | |
| 6222 | + | |
| 6223 | + | |
| 6224 | + | |
| 6225 | + | |
| 6226 | + | |
| 6227 | + | |
| 6228 | + | |
| 6229 | + | |
| 6230 | + | |
| 6231 | + | |
| 6232 | + | |
| 6233 | + | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
| 6237 | + | |
| 6238 | + | |
| 6239 | + | |
| 6240 | + | |
| 6241 | + | |
| 6242 | + | |
| 6243 | + | |
| 6244 | + | |
6179 | 6245 |
| |
6180 | 6246 |
| |
6181 | 6247 |
| |
| |||
11278 | 11344 |
| |
11279 | 11345 |
| |
11280 | 11346 |
| |
11281 |
| - | |
11282 |
| - | |
11283 |
| - | |
| 11347 | + | |
| 11348 | + | |
| 11349 | + | |
11284 | 11350 |
| |
11285 | 11351 |
| |
11286 | 11352 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
| |||
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
537 |
| - | |
| 537 | + | |
| 538 | + | |
538 | 539 |
| |
539 | 540 |
| |
540 | 541 |
| |
| |||
564 | 565 |
| |
565 | 566 |
| |
566 | 567 |
| |
567 |
| - | |
568 |
| - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
569 | 571 |
| |
570 | 572 |
| |
571 | 573 |
| |
|
Lines changed: 61 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 |
| |
31 | 36 |
| |
32 | 37 |
| |
| |||
39 | 44 |
| |
40 | 45 |
| |
41 | 46 |
| |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 |
| |
51 | 57 |
| |
52 | 58 |
| |
| |||
63 | 69 |
| |
64 | 70 |
| |
65 | 71 |
| |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
71 | 88 |
| |
72 | 89 |
| |
73 | 90 |
| |
| |||
97 | 114 |
| |
98 | 115 |
| |
99 | 116 |
| |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
100 | 126 |
| |
101 | 127 |
| |
102 | 128 |
| |
| |||
142 | 168 |
| |
143 | 169 |
| |
144 | 170 |
| |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
145 | 190 |
| |
146 | 191 |
| |
147 | 192 |
| |
|
Lines changed: 69 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 |
| - | |
| 25 | + | |
| 26 | + | |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
| |||
86 | 91 |
| |
87 | 92 |
| |
88 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
89 | 99 |
| |
90 | 100 |
| |
91 | 101 |
| |
| |||
99 | 109 |
| |
100 | 110 |
| |
101 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
102 | 143 |
| |
103 | 144 |
| |
104 | 145 |
| |
| |||
153 | 194 |
| |
154 | 195 |
| |
155 | 196 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
159 | 201 |
| |
160 | 202 |
| |
161 | 203 |
| |
| |||
171 | 213 |
| |
172 | 214 |
| |
173 | 215 |
| |
174 |
| - | |
175 |
| - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
176 | 219 |
| |
177 | 220 |
| |
178 | 221 |
| |
| |||
222 | 265 |
| |
223 | 266 |
| |
224 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
225 | 287 |
| |
226 | 288 |
| |
227 | 289 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1853 | 1853 |
| |
1854 | 1854 |
| |
1855 | 1855 |
| |
1856 |
| - | |
1857 |
| - | |
| 1856 | + | |
| 1857 | + | |
1858 | 1858 |
| |
1859 | 1859 |
| |
1860 | 1860 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
| 71 | + | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3427 | 3427 |
| |
3428 | 3428 |
| |
3429 | 3429 |
| |
| 3430 | + | |
3430 | 3431 |
| |
3431 | 3432 |
| |
3432 | 3433 |
| |
| |||
3566 | 3567 |
| |
3567 | 3568 |
| |
3568 | 3569 |
| |
| 3570 | + | |
3569 | 3571 |
| |
3570 | 3572 |
| |
3571 | 3573 |
| |
|
0 commit comments
Comments
(0)