On 2024-08-23 at 16:41, to...@tuxteam.de wrote: > On Thu, Aug 22, 2024 at 08:38:03PM -0400, Arbol One wrote: > >> After installing PostgreSQL on my Debian-12 machine, I typed 'postgres >> --version' and got this msg: >> *bash: postgres: command not found* > > There is *no* command named postgres in the Postgresql installation. Not > in the client, not in the server parts.
Then... what is /usr/lib/postgresql/$VERSION/bin/postgres ? On my machine, that exists (for values of $VERSION of 13, 14, 15, and 16), and 'file' reports it as being an ELF executable binary. It's not in $PATH, but I don't think I'd use that as the deciding factor for whether or not something qualifies as a command. > What would you expect the command "postgres" to do? The one I see appears, from what I can determine based on examining the init.d script and the file it sources, to be the server binary itself. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature