<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chmouel Blog &#187; postgres</title>
	<atom:link href="http://blog.chmouel.com/category/postgres/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chmouel.com</link>
	<description>Random and probably boring stuff.</description>
	<lastBuildDate>Mon, 16 Aug 2010 09:50:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Benchmarking with PGBench: TPS results.</title>
		<link>http://blog.chmouel.com/2007/01/06/postgres-options-using-pgbench-tps/</link>
		<comments>http://blog.chmouel.com/2007/01/06/postgres-options-using-pgbench-tps/#comments</comments>
		<pubDate>Sat, 06 Jan 2007 08:19:23 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://www.chmouel.com/blog/2007/01/06/postgres-options-using-pgbench-tps/</guid>
		<description><![CDATA[pgbench is not the best tools to benchmark postgres but it&#8217;s the one shipped by default with postgres. It does not do a good job for benchmarking your &#8220;web apps&#8221; SQL wise, it will give you some good indication about &#8230; <a href="http://blog.chmouel.com/2007/01/06/postgres-options-using-pgbench-tps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>pgbench</b> is not the best tools to benchmark postgres but it&#8217;s<br />
the one shipped by default with postgres.<br />
It does not do a good job for benchmarking your &#8220;web apps&#8221; SQL wise, it will give you some<br />
good indication about how fast is your server for postgres.</p>
<p>Here are some results we have collected using theses options :</p>
<pre>
pgbench -Uuser  -s 10 -c 10 -t 3000 benchmark
</pre>
<p>We configure servers with RAID 1+0 with write-cache and a battery<br />
backup, we have tested with postgres 8.1.5 and here are the best<br />
results for different type of servers :</p>
<p>IBM x3650 : 729tps<br />
HP DL385 : 717tps<br />
Dell PowerEdge 2950: 708tps</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2007/01/06/postgres-options-using-pgbench-tps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get size of Postgres DB from filesystem</title>
		<link>http://blog.chmouel.com/2006/06/05/get-size-of-postgres-db-from-filesystem/</link>
		<comments>http://blog.chmouel.com/2006/06/05/get-size-of-postgres-db-from-filesystem/#comments</comments>
		<pubDate>Mon, 05 Jun 2006 08:26:55 +0000</pubDate>
		<dc:creator>chmouel</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://www.chmouel.com/blog/?p=9</guid>
		<description><![CDATA[Get the size accurately from postgres local filesystem, i guess there is some sql stuff that can do that but that does the job as well for me : #!/bin/bash /usr/lib/postgresql/8.1/bin/oid2name -U postgres&#124;while read -a e;do name=${e[1]} oid=${e[0]} &#91;&#91; $oid &#8230; <a href="http://blog.chmouel.com/2006/06/05/get-size-of-postgres-db-from-filesystem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Get the size accurately from postgres local filesystem, i guess there is some sql stuff that can do that but that does the job as well for me :</p>

<div class="wp_codebox"><table><tr id="p92"><td class="code" id="p9code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>postgresql<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8.1</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>oid2name  <span style="color: #660033;">-U</span> postgres<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-a</span> e;<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #007800;">name</span>=<span style="color: #800000;">${e[1]}</span>
<span style="color: #007800;">oid</span>=<span style="color: #800000;">${e[0]}</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$oid</span> == <span style="color: #ff0000;">&quot;All&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$oid</span> == <span style="color: #ff0000;">&quot;Oid&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$oid</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$name</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">continue</span>
<span style="color: #7a0874; font-weight: bold;">typeset</span> <span style="color: #660033;">-a</span> <span style="color: #c20cb9; font-weight: bold;">size</span>
<span style="color: #007800;">size</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>postgresql<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8.1</span><span style="color: #000000; font-weight: bold;">/</span>main<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$oid</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">size</span>=<span style="color: #800000;">${size[0]}</span>
<span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;%-20s %-20s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #800000;">${name}</span> <span style="color: #800000;">${size}</span>
<span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-k</span> <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{printf &quot;%-20s%20d Mb\n&quot;, $1, $2 / 1024}'</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.chmouel.com/2006/06/05/get-size-of-postgres-db-from-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
