Vonng / pigsty

Battery-Included PostgreSQL Distro as a Free RDS Alternative
https://pigsty.io
GNU Affero General Public License v3.0
3.01k stars 242 forks source link

"pg: command not found" on ubuntu 2204 #379

Closed sunxk closed 3 months ago

sunxk commented 4 months ago

Environment: ubuntu 2204 VM,root user

root@meta:~/pigsty# pg edit-config
pg: command not found
root@meta:~/pigsty# 

It's worked well on rocky8 VM

Vonng commented 3 months ago

Sorry i didn't reproduce that in a 22.04 deployment... Could you provide more details about your deployment? And pg is an alias for patronictl, you can always use that.

SeanHoganSkyHawk commented 3 months ago

FYI: I hit that problem too, but it was resolved when I logged out and back in. I presume it's because pg is an alias or function that only comes into existence when the shell starts.