[MacPorts] #68119: postgresql15: Initialize database cluster fails

MacPorts noreply at macports.org
Sun Sep 3 20:38:39 UTC 2023


#68119: postgresql15: Initialize database cluster fails
-------------------------------------------------+-------------------------
  Reporter:  Klogic1                             |      Owner:  (none)
      Type:  defect                              |     Status:  new
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.8.1
Resolution:                                      |   Keywords:
      Port:  postgresql15, postgresql15-server,  |
  postgresql_select                              |
-------------------------------------------------+-------------------------

Comment (by Klogic1):

 dgilman, to answer your question about postgres user's home directory.

 I have the same postgres home directory as you:
{{{ NFSHomeDirectory:
 /opt/local/var/db/postgresql15}}}
 I am using a MacBook Pro with macOS Monterey to test MacPorts and
 PostgreSQL before I install them on an iMac.
 Prior to installing MacPorts and PostgreSQL I erased the SSD and
 reinstalled macOS Monterey. So, Apple's Migration Assistant was not used.

 Now to the postgresql15: Initialize database cluster fails problem.

 I have been able to resolve the problem.
 Apparently copying and pasting the below command at the terminal prompt
 was causing a problem for some reason.

 {{{sudo su postgres -c '/opt/local/lib/postgresql15/bin/initdb -D
 /opt/local/var/db/postgresql15/defaultdb’}}}

 When I typed the command at the terminal prompt it executed as expected
 and created a database cluster.

 The PostgreSQL server is now running.

 Please close the ticket since the problem is resolved.

 Thanks for your assistance with this problem and providing the PostgreSQL
 15 updates.

-- 
Ticket URL: <https://trac.macports.org/ticket/68119#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list