<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/14/2011 11:28 AM, Tom Lane wrote:
<blockquote cite="mid:500.1316014138@sss.pgh.pa.us" type="cite">
<pre wrap="">=?ISO-8859-2?Q?Miloslav_Trma=E8?= <a class="moz-txt-link-rfc2396E" href="mailto:mitr@volny.cz"><mitr@volny.cz></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">2011/9/14 "Jóhann B. Guðmundsson" <a class="moz-txt-link-rfc2396E" href="mailto:johannbg@gmail.com"><johannbg@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">An simple test to measure this reliably is to strip down the legacy sysv
init script to the start up command only and have a strip down unit file to
the startup command only.
Then time the startup of either.
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Why? The current numbers show that the service file is _slower_ even
when the old init script is supposedly doing much more work in shell.
If anything, stripping the unessential parts should make the service
file _even slower_ in relative terms.
</pre>
</blockquote>
<pre wrap="">
Yes. The unit file is already stripped down: it does nothing except
"pg_ctl start". The init script had accumulated a whole lot of
perhaps-unnecessary sanity-checking, which frankly I'd rather have kept
but the systemd mantra seems to be "no shell scripting" so I didn't.
Michal's numbers look pretty damning, and I find it remarkable that the
systemd advocates seem to have managed not to read them, let alone admit
</pre>
</blockquote>
Don't confuse we with facts! I've already made up my mind! <span
class="moz-smiley-s3"><span> ;-) </span></span><br>
<blockquote cite="mid:500.1316014138@sss.pgh.pa.us" type="cite">
<pre wrap="">that they suggest something's seriously wrong.
                        regards, tom lane
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Sr. Software Engineer III<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>