Even with the added option “—with-systemd”, it is not working still. Status remains “ Active: activating (start) since Fri 2019-06-07 09:40:06 EDT; 13s ago”. To outline what I did. 1)
Stop PostgreSQL instance running with “/hostname/pg/PostgreSQL-10.7” configuration which was compiled without the “—with-systemd” option 2)
Configure PostgreSQL to new location mkdir /hostname/pg/PostgreSQL-10.7_2 ./configure --prefix=/hostname/pg/PostgreSQL-10.7_2 make make install mv
/hostname/pg/PostgreSQL-10.7 /hostname/pg/PostgreSQL-10.7.OLD mv /hostname/pg/PostgreSQL-10.7_2 /hostname/pg/PostgreSQL-10.7 3)
Start PostgreSQL instance Any more suggestion?
From: Lu, Dan
Thank you so much for pointing that out. I downloaded the binary from
https://ftp.postgresql.org/pub/source/v10.7 After download, I did the following. mkdir /hostname/pg/PostgreSQL-10.7_2 ./configure --prefix=/hostname/pg/PostgreSQL-10.7_2 make make install I now included the option mentioned “./configure --prefix=/hostname/pg/PostgreSQL-10.7_2 --with-systemd”. I also saw that in the documentation now “Using
Type=notify requires that the server binary was built with configure --with-systemd.”. We will reply back if we run into further issue.
From: Christopher Browne [mailto:cbbrowne@xxxxxxxxx]
On Thu, Jun 6, 2019, 8:19 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Yeah, I was one of the reviewers of the patch for this feature. If the configuration parameter is turned on then Postgres reports in to SystemD once it completes any crash recovery work to indicate that the database service is up. That way, if there was a bunch of WAL needing to be processed, services depending on Postgres will properly get deferred. You need to set up the service type in the SystemD service file to Type=notify in order to get this behavior IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. |