Tiziano Valdemarin <tizianovaldemarin(at)gmail(dot)com> writes:
> I know the data directory path can be found in pg_settings, but what about
> bin? Is its path stored anywhere?
It's intentionally not stored anywhere, but rather identified at runtime.
> I already googled the topic but found only negative answers. Is there any
> motive to not expose this information as for the data dir?
If you mean making it visible at SQL level, security might be a reason.
regards, tom lane