forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite116b70
committed
pg_combinebackup: Fix PITR comparison test in 002_compare_backups
The test was creating both the dumps to compare from the same databaseon the same node, so it would never detect any mismatches when comparingthe logical dumps of the two servers.Fixing this issue has revealed that there is a difference in the dumps:the tablespaces paths are different. This commit uses compare_text()with a custom comparison function to erase the difference (slightlytweaked to be able to work with WIN32 and non-WIN32 paths). This way,the non-relevant parts of the tablespace path are ignored from the checkwith the basic structure of the query string still compared.Author: Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/87h67653ns.fsf@wibble.ilmari.orgBackpatch-through: 171 parent0cc7da4 commite116b70
1 file changed
+11
-5
lines changedLines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
| 178 | + | |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
| 183 | + | |
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
188 |
| - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 |
| |
190 | 196 |
| |
191 | 197 |
| |
|
0 commit comments
Comments
(0)