Program names and "pollution"
Program names and "pollution"
Posted Apr 3, 2019 8:18 UTC (Wed) by kandreas (guest, #131050)In reply to: Program names and "pollution" by mrshiny
Parent article: Program names and "pollution"
Posted Apr 3, 2019 10:15 UTC (Wed)
by lamawithonel (subscriber, #86149)
[Link] (4 responses)
1: Move existing commands to pg_* and create symlinks.
Posted Apr 3, 2019 10:24 UTC (Wed)
by lamawithonel (subscriber, #86149)
[Link]
Posted Apr 3, 2019 15:19 UTC (Wed)
by kh (guest, #19413)
[Link] (1 responses)
Posted Apr 4, 2019 13:25 UTC (Thu)
by lamawithonel (subscriber, #86149)
[Link]
Posted Apr 3, 2019 17:19 UTC (Wed)
by rotty (guest, #14630)
[Link]
This build system feature, though, would probably helpful on source-based systems, though I'm not familiar with those.
Posted Apr 7, 2019 0:13 UTC (Sun)
by rossmohax (guest, #71829)
[Link] (3 responses)
Posted Apr 9, 2019 1:40 UTC (Tue)
by k8to (guest, #15413)
[Link] (2 responses)
Posted Apr 9, 2019 15:16 UTC (Tue)
by nix (subscriber, #2304)
[Link] (1 responses)
Posted Apr 9, 2019 23:35 UTC (Tue)
by karkhaz (subscriber, #99844)
[Link]
Program names and "pollution"
1a: (optional) Create a central binary with sub-commands, à la `git` or `systemctl`, and move all the pg_* commands under that. Replace symlinks with shim binaries.
2: Start printing a warning if commands are called by their legacy names, but allowi users to silence the warnings with an option flag.
3: Create a build path to build only the symlinks/shims, and a non-default way to build without them. This gives packagers an easy way to package them separately, and users a way to test without them. It also gives packagers some control over how and when they remove the symlinks/shims.
4: Make deprecation warning silence flags NOOP.
5: Inspired by rfunk's comment, move the symlinks/shims out of $PATH, to something like /usr/share/postgres/bin, and declare them unsupported. Inform users that they can add the new directory to their $PATH if they really need them for some reason, but that you won't accept bug reports against them. Maintain this for at least another major release, possibly several more.
6: Rejoice when our AI overloads remove all the symlinks/shims.
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"
Program names and "pollution"