- Notifications
You must be signed in to change notification settings - Fork5
Commite7a110b
committed
This patch can be installed as part of 1.02.1 so people can properly
pg_dump and load to 2.0. I haven't gotten any feedback on whetherpeople want it, so I am submitting it for others to decide. I wouldrecommend an install in 1.02.1.I had said that the 2.0 pg_dump could dump a 1.02.1 database, but I waswrong. The copy is actually performed by the backend, and the 2.0database will not be able to read 1.02.1 databases because of the newsystem columns.This patch does several things. It copies nulls out as \N, so they canbe distinguished from '' strings. It fixes a problem where backslashesin the input stream were not output as double-backslashes. Without thispatch, backslashes copied out were deleted upon input, or interpreted asspecial characters. Third, input is now terminated by backslash-period.This can not be part of a normal input stream.I tested this by creating a database with all sorts of nulls, backslash,and period fields and dumped the database and reloaded into a newdatabase and compared them.Submitted by: Bruce1 parent15a6450 commite7a110b
2 files changed
+45
-58
lines changedLines changed: 40 additions & 55 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 |
| |
173 | 176 |
| |
174 | 177 |
| |
| |||
703 | 706 |
| |
704 | 707 |
| |
705 | 708 |
| |
706 |
| - | |
707 |
| - | |
| 709 | + | |
| 710 | + | |
708 | 711 |
| |
709 |
| - | |
710 | 712 |
| |
711 | 713 |
| |
712 | 714 |
| |
713 | 715 |
| |
714 |
| - | |
715 |
| - | |
| 716 | + | |
716 | 717 |
| |
717 |
| - | |
718 |
| - | |
719 |
| - | |
720 |
| - | |
721 |
| - | |
722 |
| - | |
723 |
| - | |
724 |
| - | |
725 |
| - | |
726 |
| - | |
727 |
| - | |
728 |
| - | |
729 |
| - | |
730 |
| - | |
731 |
| - | |
| 718 | + | |
732 | 719 |
| |
733 | 720 |
| |
734 | 721 |
| |
735 | 722 |
| |
736 |
| - | |
737 |
| - | |
| 723 | + | |
738 | 724 |
| |
739 |
| - | |
740 | 725 |
| |
741 | 726 |
| |
742 | 727 |
| |
| |||
755 | 740 |
| |
756 | 741 |
| |
757 | 742 |
| |
758 |
| - | |
759 |
| - | |
| 743 | + | |
760 | 744 |
| |
761 |
| - | |
762 | 745 |
| |
763 | 746 |
| |
764 | 747 |
| |
765 |
| - | |
766 |
| - | |
| 748 | + | |
767 | 749 |
| |
768 |
| - | |
769 | 750 |
| |
770 | 751 |
| |
771 | 752 |
| |
772 |
| - | |
| 753 | + | |
773 | 754 |
| |
774 | 755 |
| |
775 | 756 |
| |
| |||
789 | 770 |
| |
790 | 771 |
| |
791 | 772 |
| |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
792 | 783 |
| |
793 | 784 |
| |
794 | 785 |
| |
| |||
799 | 790 |
| |
800 | 791 |
| |
801 | 792 |
| |
802 |
| - | |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
808 |
| - | |
| 793 | + | |
809 | 794 |
| |
810 | 795 |
| |
811 | 796 |
| |
| |||
817 | 802 |
| |
818 | 803 |
| |
819 | 804 |
| |
820 |
| - | |
| 805 | + | |
821 | 806 |
| |
822 |
| - | |
823 | 807 |
| |
824 | 808 |
| |
825 |
| - | |
| 809 | + | |
| 810 | + | |
826 | 811 |
| |
827 |
| - | |
828 |
| - | |
829 |
| - | |
830 |
| - | |
831 |
| - | |
832 |
| - | |
833 |
| - | |
834 |
| - | |
835 |
| - | |
836 |
| - | |
837 |
| - | |
838 |
| - | |
839 |
| - | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
840 | 825 |
| |
841 | 826 |
| |
842 | 827 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| |||
1394 | 1394 |
| |
1395 | 1395 |
| |
1396 | 1396 |
| |
1397 |
| - | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
1398 | 1400 |
| |
1399 | 1401 |
| |
1400 | 1402 |
| |
| |||
1410 | 1412 |
| |
1411 | 1413 |
| |
1412 | 1414 |
| |
1413 |
| - | |
| 1415 | + | |
1414 | 1416 |
| |
1415 | 1417 |
| |
1416 | 1418 |
| |
|
0 commit comments
Comments
(0)