osx - Postgresql installed on Mac OS X but no /usr/local/psql -
i have postgresql installed on mac os x, , can see it's installed because have running on port 5432. however, it's not using /usr/local/postgres it's root it's supposed to.
how can tell it's installed? there problematic not being installed in location?
here query show locations of files postgresql "knows" internally:
select current_setting('data_directory') data_directory, current_setting('config_file') config_file, current_setting('hba_file') hba_file, current_setting('ident_file') ident_file, current_setting('external_pid_file') external_pid_file;
you can check location of postmaster process command line with:
ps aux | grep bin/postgres | head -n 1 | sed -e 's/.*[[:digit:]] //'
pg_config located in same directory, can find out location of else there.
Comments
Post a Comment