forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2b1f580
committed
Remove configure probes for symlink/readlink, and dead code.
symlink() and readlink() are in SUSv2 and all targeted Unix systems havethem. We have partial emulation on Windows. Code that raised runtimeerrors on systems without it has been dead for years, so we can removethat and also references to such systems in the documentation.Define HAVE_READLINK and HAVE_SYMLINK macros on Unix. Our Windowsreplacement functions based on junction points can't be used forrelative paths or for non-directories, so the macros can be used tocheck for full symlink support. The places that deal with tablespacescan just use symlink functions without checking the macros. (If theydid check the macros, they'd need to provide an #else branch with aruntime or compile time error, and it'd be dead code.)Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com1 parentadeef67 commit2b1f580
File tree
15 files changed
+13
-86
lines changed- doc/src/sgml
- ref
- src
- backend
- access/transam
- commands
- replication
- utils/adt
- bin
- initdb
- pg_basebackup
- pg_rewind
- common
- include
- tools/msvc
15 files changed
+13
-86
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16039 | 16039 |
| |
16040 | 16040 |
| |
16041 | 16041 |
| |
16042 |
| - | |
| 16042 | + | |
16043 | 16043 |
| |
16044 | 16044 |
| |
16045 | 16045 |
| |
| |||
17083 | 17083 |
| |
17084 | 17084 |
| |
17085 | 17085 |
| |
17086 |
| - | |
17087 |
| - | |
17088 |
| - | |
17089 | 17086 |
| |
17090 | 17087 |
| |
17091 | 17088 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1805 | 1805 |
| |
1806 | 1806 |
| |
1807 | 1807 |
| |
1808 |
| - | |
1809 | 1808 |
| |
1810 | 1809 |
| |
1811 | 1810 |
| |
1812 | 1811 |
| |
1813 | 1812 |
| |
1814 |
| - | |
1815 | 1813 |
| |
1816 | 1814 |
| |
1817 | 1815 |
| |
| |||
1963 | 1961 |
| |
1964 | 1962 |
| |
1965 | 1963 |
| |
1966 |
| - | |
1967 |
| - | |
1968 | 1964 |
| |
1969 | 1965 |
| |
1970 | 1966 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 | 533 |
| |
541 | 534 |
| |
542 | 535 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 | 130 |
| |
135 | 131 |
| |
136 | 132 |
| |
|
Lines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8305 | 8305 |
| |
8306 | 8306 |
| |
8307 | 8307 |
| |
8308 |
| - | |
8309 | 8308 |
| |
8310 | 8309 |
| |
8311 | 8310 |
| |
| |||
8358 | 8357 |
| |
8359 | 8358 |
| |
8360 | 8359 |
| |
8361 |
| - | |
8362 |
| - | |
8363 |
| - | |
8364 |
| - | |
8365 |
| - | |
8366 |
| - | |
8367 |
| - | |
8368 |
| - | |
8369 |
| - | |
8370 |
| - | |
8371 |
| - | |
8372 | 8360 |
| |
8373 | 8361 |
| |
8374 | 8362 |
| |
|
Lines changed: 0 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
216 |
| - | |
217 | 216 |
| |
218 | 217 |
| |
219 | 218 |
| |
| |||
391 | 390 |
| |
392 | 391 |
| |
393 | 392 |
| |
394 |
| - | |
395 |
| - | |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 | 393 |
| |
401 | 394 |
| |
402 | 395 |
| |
| |||
407 | 400 |
| |
408 | 401 |
| |
409 | 402 |
| |
410 |
| - | |
411 | 403 |
| |
412 | 404 |
| |
413 | 405 |
| |
| |||
573 | 565 |
| |
574 | 566 |
| |
575 | 567 |
| |
576 |
| - | |
577 |
| - | |
578 |
| - | |
579 |
| - | |
580 |
| - | |
581 | 568 |
| |
582 | 569 |
| |
583 | 570 |
| |
|
Lines changed: 0 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 | 1332 |
| |
1333 |
| - | |
1334 | 1333 |
| |
1335 | 1334 |
| |
1336 | 1335 |
| |
| |||
1349 | 1348 |
| |
1350 | 1349 |
| |
1351 | 1350 |
| |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
1356 |
| - | |
1357 |
| - | |
1358 |
| - | |
1359 |
| - | |
1360 |
| - | |
1361 |
| - | |
1362 |
| - | |
1363 |
| - | |
1364 | 1351 |
| |
1365 | 1352 |
| |
1366 | 1353 |
| |
|
Lines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
305 |
| - | |
306 |
| - | |
307 | 305 |
| |
308 | 306 |
| |
309 | 307 |
| |
| |||
349 | 347 |
| |
350 | 348 |
| |
351 | 349 |
| |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 | 350 |
| |
359 | 351 |
| |
360 | 352 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2646 | 2646 |
| |
2647 | 2647 |
| |
2648 | 2648 |
| |
2649 |
| - | |
2650 | 2649 |
| |
2651 | 2650 |
| |
2652 | 2651 |
| |
2653 |
| - | |
2654 |
| - | |
2655 |
| - | |
2656 | 2652 |
| |
2657 | 2653 |
| |
2658 | 2654 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2763 | 2763 |
| |
2764 | 2764 |
| |
2765 | 2765 |
| |
2766 |
| - | |
2767 | 2766 |
| |
2768 | 2767 |
| |
2769 |
| - | |
2770 |
| - | |
2771 |
| - | |
2772 | 2768 |
| |
2773 | 2769 |
| |
2774 | 2770 |
| |
|
Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
440 |
| - | |
441 | 440 |
| |
442 | 441 |
| |
443 | 442 |
| |
| |||
460 | 459 |
| |
461 | 460 |
| |
462 | 461 |
| |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 | 462 |
| |
468 | 463 |
| |
469 | 464 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
253 | 257 |
| |
254 | 258 |
| |
255 | 259 |
| |
|
Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 | 430 |
| |
434 | 431 |
| |
435 | 432 |
| |
| |||
556 | 553 |
| |
557 | 554 |
| |
558 | 555 |
| |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 | 556 |
| |
563 | 557 |
| |
564 | 558 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
522 | 522 |
| |
523 | 523 |
| |
524 | 524 |
| |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
525 | 531 |
| |
526 | 532 |
| |
527 | 533 |
| |
| 534 | + | |
528 | 535 |
| |
529 | 536 |
| |
| 537 | + | |
530 | 538 |
| |
531 | 539 |
| |
532 | 540 |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
340 |
| - | |
341 | 340 |
| |
342 | 341 |
| |
343 | 342 |
| |
| |||
380 | 379 |
| |
381 | 380 |
| |
382 | 381 |
| |
383 |
| - | |
384 | 382 |
| |
385 | 383 |
| |
386 | 384 |
| |
|
0 commit comments
Comments
(0)