- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit7054186
Amit Kapila
Replicate generated columns when 'publish_generated_columns' is set.
This patch builds on the work done in commit745217a by enabling thereplication of generated columns alongside regular column changes througha new publication parameter: publish_generated_columns.Example usage:CREATE PUBLICATION pub1 FOR TABLE tab_gencol WITH (publish_generated_columns = true);The column list takes precedence. If the generated columns are specifiedin the column list, they will be replicated even if'publish_generated_columns' is set to false. Conversely, if generatedcolumns are not included in the column list (assuming the user specifies acolumn list), they will not be replicated even if'publish_generated_columns' is true.Author: Vignesh C, Shubham KhannaReviewed-by: Peter Smith, Amit Kapila, Hayato Kuroda, Shlok Kyal, Ajin Cherian, Hou Zhijie, Masahiko SawadaDiscussion:https://postgr.es/m/B80D17B2-2C8E-4C7D-87F2-E5B4BE3C069E@gmail.com1 parent70291a3 commit7054186
File tree
20 files changed
+925
-403
lines changed- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- replication
- logical
- pgoutput
- bin
- pg_dump
- t
- psql
- include
- catalog
- replication
- test
- regress
- expected
- sql
- subscription/t
20 files changed
+925
-403
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
519 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7477 | 7477 | | |
7478 | 7478 | | |
7479 | 7479 | | |
7480 | | - | |
| 7480 | + | |
7481 | 7481 | | |
7482 | 7482 | | |
7483 | 7483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
192 | 212 | | |
193 | 213 | | |
194 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
259 | 305 | | |
260 | 306 | | |
261 | 307 | | |
| |||
573 | 619 | | |
574 | 620 | | |
575 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
576 | 646 | | |
577 | 647 | | |
578 | 648 | | |
| |||
998 | 1068 | | |
999 | 1069 | | |
1000 | 1070 | | |
| 1071 | + | |
1001 | 1072 | | |
1002 | 1073 | | |
1003 | 1074 | | |
| |||
1205 | 1276 | | |
1206 | 1277 | | |
1207 | 1278 | | |
1208 | | - | |
| 1279 | + | |
1209 | 1280 | | |
1210 | 1281 | | |
1211 | 1282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
154 | 165 | | |
155 | 166 | | |
156 | 167 | | |
| |||
737 | 748 | | |
738 | 749 | | |
739 | 750 | | |
| 751 | + | |
| 752 | + | |
740 | 753 | | |
741 | 754 | | |
742 | 755 | | |
| |||
776 | 789 | | |
777 | 790 | | |
778 | 791 | | |
779 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
780 | 795 | | |
781 | 796 | | |
782 | 797 | | |
| |||
793 | 808 | | |
794 | 809 | | |
795 | 810 | | |
| 811 | + | |
| 812 | + | |
796 | 813 | | |
797 | 814 | | |
798 | 815 | | |
| |||
878 | 895 | | |
879 | 896 | | |
880 | 897 | | |
| 898 | + | |
| 899 | + | |
881 | 900 | | |
882 | 901 | | |
883 | 902 | | |
| |||
887 | 906 | | |
888 | 907 | | |
889 | 908 | | |
890 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
891 | 912 | | |
892 | 913 | | |
893 | 914 | | |
| |||
997 | 1018 | | |
998 | 1019 | | |
999 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1000 | 1027 | | |
1001 | 1028 | | |
1002 | 1029 | | |
| |||
0 commit comments
Comments
(0)