Files
ports/databases/postgresql/patches/patch-src_bin_initdb_initdb_c
jeremy 42170c4fe4 Update to PostgreSQL 18.1
Bulk testing by tb@
OK sthen@
2025-11-23 03:05:13 +00:00

32 lines
784 B
Plaintext

Use rcctl in initdb instructions if using the path that the rc.d
script handles.
Index: src/bin/initdb/initdb.c
--- src/bin/initdb/initdb.c.orig
+++ src/bin/initdb/initdb.c
@@ -3525,6 +3525,16 @@ main(int argc, char *argv[])
if (!noinstructions)
{
+ if (strcmp(pgdata_native, "/var/postgresql/data") == 0)
+ {
+ printf("\nSuccess. You can now start the database server using:\n\n"
+ " rcctl start postgresql\n\n"
+ "To start the PostgreSQL server automatically at boot:\n\n"
+ " rcctl enable postgresql\n\n"
+ );
+ }
+ else
+ {
/*
* Build up a shell command to tell the user how to start the server
*/
@@ -3556,6 +3566,7 @@ main(int argc, char *argv[])
start_db_cmd->data);
destroyPQExpBuffer(start_db_cmd);
+ }
}