After installing PostgreSQL on my Debian-12 machine
Is there a way I can locate the installation directory?
After installing PostgreSQL on my Debian-12 machine, I typed
'postgres --version' and got this msg:
*bash: postgres: command not found*
'psql --version', however, does work and gives me this message :
*psql (PostgreSQL) 16.3 (Debian 16.3-1.pgdg120+1)*
Obviously postgres is not in the path, but I don't know where the
'apt-get' installed it or why it did not add it to the path.
Is there a way I can locate the installation directory?
Thank in advance.
After installing PostgreSQL on my Debian-12 machine, I typed
'postgres --version' and got this msg: *bash: postgres: command not
found*
'psql --version', however, does work and gives me this message :
*psql (PostgreSQL) 16.3 (Debian 16.3-1.pgdg120+1)*
Obviously postgres is not in the path, but I don't know where the
'apt-get' installed it or why it did not add it to the path.
Is there a way I can locate the installation directory?
After installing PostgreSQL on my Debian-12 machine, I typed 'postgres --version' and got this msg:
*bash: postgres: command not found*
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.
What would you expect the command "postgres" to do?
On 2024-08-23 at 16:41, tomas@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 ?
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.
On Fri, Aug 23, 2024 at 04:52:07PM -0400, The Wanderer wrote:
On 2024-08-23 at 16:41, tomas@tuxteam.de wrote:
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 ?
It's a binary, but I wouldn't call it a "command" in the usual sense
(it would live in some of the customary $PATH places, then).
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.
Hm. That's exactly what I just did,
IIRC (but I might be wrong) postgres is instantiated to handle a
session and should be started by postmaster. I don't think it
expects to be called directly.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 161:59:17 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,500 |