<?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>.:[dontmesswithmyheart]:.</title>
	<atom:link href="http://www.synack.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.synack.info</link>
	<description>my world is all about three-way handshake SYN/ACK</description>
	<lastBuildDate>Tue, 28 Jul 2009 02:52:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to analyze PostgreSQL logs?</title>
		<link>http://www.synack.info/how-to-analyze-postgresql-logs/</link>
		<comments>http://www.synack.info/how-to-analyze-postgresql-logs/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 02:51:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[psql]]></category>

		<guid isPermaLink="false">http://www.synack.info/wordpress/?p=11</guid>
		<description><![CDATA[Sometimes you need to analyze what actually is hitting your database. It could be due to poor performance or just maybe for improvement purposes. Whatever is the reason, here are the options that I enable to achieve this:
Edit postgresql.conf file and enable the following options:

log_destination = &#8217;stderr&#8217;
redirect_stderr = on
log_directory = &#8216;pg_log&#8217;
log_filename = &#8216;postgresql-%Y-%m-%d.log&#8217;
client_min_messages = notice
log_min_messages [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to analyze what actually is hitting your database. It could be due to poor performance or just maybe for improvement purposes. Whatever is the reason, here are the options that I enable to achieve this:</p>
<p>Edit postgresql.conf file and enable the following options:</p>
<ul>
<li>log_destination = &#8217;stderr&#8217;</li>
<li>redirect_stderr = on</li>
<li>log_directory = &#8216;pg_log&#8217;</li>
<li>log_filename = &#8216;postgresql-%Y-%m-%d.log&#8217;</li>
<li>client_min_messages = notice</li>
<li>log_min_messages = notice</li>
<li>log_min_duration_statement = 0</li>
<li>log_line_prefix = &#8216;[%t] &lt;%d&gt;&#8217;</li>
</ul>
<p>The comments in that file are quite sufficient to understand and change values according to your need. Once you&#8217;re done, don&#8217;t forget to restart PostgreSQL.</p>
<p>After that just tail -f postgresql-2009-07-20.log and maybe throw some grep and/or grep -v</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/how-to-analyze-postgresql-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard shortcuts in interactive psql</title>
		<link>http://www.synack.info/keyboard-shortcuts-in-interactive-psql/</link>
		<comments>http://www.synack.info/keyboard-shortcuts-in-interactive-psql/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 04:44:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<category><![CDATA[psql]]></category>

		<guid isPermaLink="false">http://www.synack.info/?p=44</guid>
		<description><![CDATA[psql =      PostgreSQL interactive terminal
I&#8217;ve read this article (http://www.depesz.com/index.php/2008/03/30/keyboard-shortcuts-in-psql) today and decided to try on my MacBook.
Interestingly, all shortcuts were working fine in normal shell, but no action as soon as run &#8220;psql db_name&#8221; and go into interactive psql prompt.
After searching google, found out that psql on Mac OS was [...]]]></description>
			<content:encoded><![CDATA[<p>psql =      <span class="PRODUCTNAME">PostgreSQL</span> interactive terminal</p>
<p>I&#8217;ve read this article (http://www.depesz.com/index.php/2008/03/30/keyboard-shortcuts-in-psql) today and decided to try on my MacBook.</p>
<p>Interestingly, all shortcuts were working fine in normal shell, but no action as soon as run &#8220;psql db_name&#8221; and go into interactive psql prompt.</p>
<p>After searching google, found out that psql on Mac OS was using libedit instead of &#8220;readline&#8221;, so had to edit $HOME/.editrc file as below:</p>
<blockquote><p>postgres@deimos:~ $ vim $HOME/.editrc<br />
bind -s “^[e" "explain analyze "<br />
bind -s "^[s" "select * from "</p></blockquote>
<p>To have the special characters "ctrl-v" and "option-e" insterted while in vim, I had to tick/enable "Terminal.app --&gt; Preferences --&gt; [*] Use option as meta key”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/keyboard-shortcuts-in-interactive-psql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create iTunes Store account without credit card details?</title>
		<link>http://www.synack.info/how-to-create-itunes-store-account-without-credit-card-details/</link>
		<comments>http://www.synack.info/how-to-create-itunes-store-account-without-credit-card-details/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 03:17:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[iTunes Store]]></category>

		<guid isPermaLink="false">http://www.synack.info/?p=41</guid>
		<description><![CDATA[Recently we&#8217;ve bought an iPod Touch (8gb model) and obviously went to iTunes Store to check out/download some applications&#8230; On first access, it prompted me to create an account, so I followed on-screen instructions to do so. The problem came out when it asked me for credit card details. I do not have one, and [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we&#8217;ve bought an iPod Touch (8gb model) and obviously went to iTunes Store to check out/download some applications&#8230; On first access, it prompted me to create an account, so I followed on-screen instructions to do so. The problem came out when it asked me for credit card details. I do not have one, and it would not allow me to skip that portion of registration process.</p>
<p>After some google&#8217;ing around, I&#8217;ve found out that it is possible to create an account without providing credit card details:</p>
<ol>
<li>Find a free application first.</li>
<li>Click on &#8220;GET APP&#8221; link (if the application is not free it will be &#8220;BUY APP&#8221;).</li>
<li>You&#8217;ll be prompted to login or create an account.</li>
<li>Now, it will provide another option &#8220;(o) NONE&#8221; in credit card details section, which you can choose and complete the registration process.</li>
</ol>
<p>Go get them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/how-to-create-itunes-store-account-without-credit-card-details/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mac OS X and colorized Terminal.app</title>
		<link>http://www.synack.info/mac-os-x-and-colorized-terminalapp/</link>
		<comments>http://www.synack.info/mac-os-x-and-colorized-terminalapp/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 22:55:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[colorized prompt]]></category>

		<guid isPermaLink="false">http://www.synack.info/?p=38</guid>
		<description><![CDATA[I used to like colorized bash prompt on my Linux boxes, whereas default Terminal.app prompt will give you a bit boring colors.
You can change that with below snippet of code in your .bashrc
PS1=&#8217;\[\033[01;32m\]\u\[\033[01;34m\] @ \[\033[01;31m\]\h \[\033[00;34m\][ \[\033[01;34m\]\W \[\033[00;34m\]]\[\033[01;32m\] \[\033[00m\]&#8216;
If you want to test above prompt without doing any changes to your current/default prompt, you can [...]]]></description>
			<content:encoded><![CDATA[<p>I used to like colorized bash prompt on my Linux boxes, whereas default Terminal.app prompt will give you a bit boring colors.</p>
<p>You can change that with below snippet of code in your .bashrc</p>
<blockquote><p>PS1=&#8217;\[\033[01;32m\]\u\[\033[01;34m\] @ \[\033[01;31m\]\h \[\033[00;34m\][ \[\033[01;34m\]\W \[\033[00;34m\]]\[\033[01;32m\] \[\033[00m\]&#8216;</p></blockquote>
<p>If you want to test above prompt without doing any changes to your current/default prompt, you can just copy/paste below in your prompt and press [Enter]:</p>
<blockquote><p>export PS1=&#8217;\[\033[01;32m\]\u\[\033[01;34m\] @ \[\033[01;31m\]\h \[\033[00;34m\][ \[\033[01;34m\]\W \[\033[00;34m\]]\[\033[01;32m\] \[\033[00m\]&#8216;</p></blockquote>
<p>Update: Forgot to link the source that I&#8217;ve used http://twistedcode.blogspot.com/search/label/howtos</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/mac-os-x-and-colorized-terminalapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X VirtualBox and Shared Folders</title>
		<link>http://www.synack.info/virtualbox-and-shared-folders/</link>
		<comments>http://www.synack.info/virtualbox-and-shared-folders/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 10:15:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[shared folders]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.synack.info/?p=27</guid>
		<description><![CDATA[I use eclipse to play around with some ruby/php/jsp code. And usually that&#8217;s ~/Projects/workspace/my_site
Now, let&#8217;s assume that I would like to host these files off my Ubuntu guest OS&#8230; What do I do?
1. Add the folder in &#8220;Shared Folders&#8221; screen as seen on the screenshot.
2. Boot the guest OS up and run this command:

root@virtuozo~$ mount [...]]]></description>
			<content:encoded><![CDATA[<p>I use eclipse to play around with some ruby/php/jsp code. And usually that&#8217;s ~/Projects/workspace/my_site</p>
<p>Now, let&#8217;s assume that I would like to host these files off my Ubuntu guest OS&#8230; What do I do?<br />
1. Add the folder in &#8220;Shared Folders&#8221; screen as seen on the screenshot.<br />
2. Boot the guest OS up and run this command:</p>
<p><a href="http://www.synack.info/wp-content/uploads/2008/08/vbox_shared_folder.png"><img class="aligncenter size-medium wp-image-29" title="vbox_shared_folder" src="http://www.synack.info/wp-content/uploads/2008/08/vbox_shared_folder-300x74.png" alt="" width="300" height="74" /></a></p>
<p><strong>root@virtuozo~$ mount -t vboxsf -o uid=1000,gid=33 blog /var/www/blog/</strong></p>
<p>As you can see, I used exactly the same name that&#8217;s set in the</p>
<p>screenshot above. What&#8217;s next? Just restart apache and point your browser to the right IP/hostname. In the example above, uid=1000 is normal user, whereas gid=33 is the www-data user (apache).<br />
PS: You might need to do some port forwarding, so that when you point your browser to http://localhost:8000 it will be forwarded to localhost:80 on your guest OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/virtualbox-and-shared-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox on Mac OS X and port forwarding</title>
		<link>http://www.synack.info/virtualbox-on-mac-os-x-and-port-forwarding/</link>
		<comments>http://www.synack.info/virtualbox-on-mac-os-x-and-port-forwarding/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 06:02:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.synack.info/?p=26</guid>
		<description><![CDATA[I&#8217;ve been using VirtualBox for some time already, and frankly speaking I&#8217;ve got no problems.

I am able to run Linux &#38; XP Pro guests.
Seamless mode is working fine after installing &#8220;Guest Additions&#8221;
Shared folder is working fine, the &#8220;/var/www/my_site&#8221; is mounted from Mac_OS_X-&#62;Projects/workspace/my_site, basically my development environment is Mac, whereas the LAMP stack (apache2 + postgresql) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using VirtualBox for some time already, and frankly speaking I&#8217;ve got no problems.</p>
<ul>
<li>I am able to run Linux &amp; XP Pro guests.</li>
<li>Seamless mode is working fine after installing &#8220;Guest Additions&#8221;</li>
<li>Shared folder is working fine, the &#8220;/var/www/my_site&#8221; is mounted from Mac_OS_X-&gt;Projects/workspace/my_site, basically my development environment is Mac, whereas the LAMP stack (apache2 + postgresql) runs on Linux guest.</li>
<li>Port forwarding &#8211; no problems.</li>
</ul>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/Protocol&#8221; TCP<br />
VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/GuestPort&#8221; 80<br />
VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestweb/HostPort&#8221; 8000</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/Protocol&#8221; TCP</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/GuestPort&#8221; 443<br />
VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/HostPort&#8221; 8443</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol&#8221; TCP</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort&#8221; 22<br />
VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort&#8221; 2200</p>
<p>VBoxManage setextradata &#8220;xp_pro&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestremote/Protocol&#8221; TCP</p>
<p>VBoxManage setextradata &#8220;xp_pro&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestremote/GuestPort&#8221; 3389<br />
VBoxManage setextradata &#8220;xp_pro&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestremote/HostPort&#8221; 3388</p>
<p>Now, let&#8217;s say you want to remove any of the above port forwardings (I&#8217;ll do for SSL port forwarding in my case):</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/Protocol&#8221;</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/GuestPort&#8221;</p>
<p>VBoxManage setextradata &#8220;ubuntu-lts&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssl/HostPort&#8221;</p>
<p>Basically, you just remove the last string from the same set of commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/virtualbox-on-mac-os-x-and-port-forwarding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to brute-force password protected zip file?</title>
		<link>http://www.synack.info/how-to-brute-force-password-protected-zip-file/</link>
		<comments>http://www.synack.info/how-to-brute-force-password-protected-zip-file/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 04:29:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://www.synack.info/how-to-brute-force-password-protected-zip-file/</guid>
		<description><![CDATA[Imagine a situation when you need to unzip a password protected zip file. So, how do we do it? 

Get a password file (file that will contain possible passwords one per line)
Write a bash script, total 8 lines of code
Run the script and wait&#8230; (depends on processing power, password file size, etc)

synack@deimos $ cat crack.sh#!/bin/bash# Author: [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine a situation when you need to unzip a password protected zip file. So, how do we do it? 
<ul>
<li>Get a password file (file that will contain possible passwords one per line)</li>
<li>Write a bash script, total 8 lines of code</li>
<li>Run the script and wait&#8230; (depends on processing power, password file size, etc)</li>
</ul>
<blockquote><p><code>synack@deimos $ cat crack.sh<br />#!/bin/bash<br /># Author: K. Jusupov<br /># Date: 09/11/2007<br /># Description: Brute force the password protected zip file using 'password' from a file
<p> while read line; do<br />unzip -P $line $1;<br />if [ $? = 0 ]; then <br /># successful unzip<br />clear<br />echo "Password found: $line"<br />break<br />fi<br />done &lt; passwd.txt</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/how-to-brute-force-password-protected-zip-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Leopard upgrade</title>
		<link>http://www.synack.info/leopard-upgrade/</link>
		<comments>http://www.synack.info/leopard-upgrade/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 14:30:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://www.synack.info/leopard-upgrade/</guid>
		<description><![CDATA[Well, it was 26th when I went to our local (read nearest) Mac shop, I knew that I&#8217;m not gonna be purchasing Leopard, it was more of to see what is gonna happen&#8230; Basically, when I reach the shop, the doors were half closed, and some sort of crowd was outside.
Next day onwards I&#8217;ve read [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it was 26th when I went to our local (read nearest) Mac shop, I knew that I&#8217;m not gonna be purchasing Leopard, it was more of to see what is gonna happen&#8230; Basically, when I reach the shop, the doors were half closed, and some sort of crowd was outside.</p>
<p>Next day onwards I&#8217;ve read different post talking about the experience the users were having installing, configuring, customizing or upgrading, etc&#8230; There were people who had that experience in a bit salty way&#8230;</p>
<p>So, today I eventually got my copy of Leopard and after getting all my backups done, started upgrade&#8230; To be on the safe side, I did verify and repair my hard disk, just in case my upgrade will fail. It took about 1.5 &#8211; 2 hours to finish the upgrade and get my very first experience with Leopard <img src='http://www.synack.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I got my mail (about 500mb) without any issues, all my pictures (about 20gb) without any problems. I think all my apps are OK, working fine&#8230; I don&#8217;t think I will be able to do any benchmarks on the performance, speed, etc&#8230; As never had problems running on my 2gb RAM and 2.16 Ghz Core 2 Duo MacBook. So, overall I can say &#8211; my upgrade went very smooth, no issues. Right after the upgrade finished, was able to get on-line (wi-fi) and get some software updates.</p>
<p>Hopefully next few posts will be able new features, new apps, etc&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/leopard-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read/write activity on tables &#8211; PostgreSQL</title>
		<link>http://www.synack.info/readwrite-activity-on-tables-postgresql/</link>
		<comments>http://www.synack.info/readwrite-activity-on-tables-postgresql/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 09:18:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.synack.info/readwrite-activity-on-tables-postgresql/</guid>
		<description><![CDATA[If you ever wanted to know which tables are actively being hit on your database, please pay attention to: http://www.postgresql.org/docs/8.1/static/monitoring-stats.html
postgres@server:~$ psql testdb  -c &#8220;select relname, idx_tup_fetch as seeks, n_tup_ins + n_tup_upd + n_tup_del as writes from pg_stat_user_tables order by writes desc limit 5;&#8221;
relname        &#124;  seeks   &#124; writes
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;
user                [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever wanted to know which tables are actively being hit on your database, please pay attention to: http://www.postgresql.org/docs/8.1/static/monitoring-stats.html</p>
<blockquote><p>postgres@server:~$ psql testdb  -c &#8220;select relname, idx_tup_fetch as seeks, n_tup_ins + n_tup_upd + n_tup_del as writes from pg_stat_user_tables order by writes desc limit 5;&#8221;<br />
relname        |  seeks   | writes<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;<br />
user                    |  364963 | 355314<br />
employee          |     232     | 282747<br />
class                   |  587978 | 190938<br />
task                    |      79      | 125255<br />
project               |                | 117282<br />
(5 rows)</p></blockquote>
<p>Based on these kind of output you might want to reconsider some&#8230; Maybe reconsider how your database is setup? Put most active tables as a separate database? Move them to a separate discs? etc&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/readwrite-activity-on-tables-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How big is PostgreSQL database size?</title>
		<link>http://www.synack.info/how-big-is-postgresql-database-size/</link>
		<comments>http://www.synack.info/how-big-is-postgresql-database-size/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 11:44:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.synack.info/how-big-is-postgresql-database-size/</guid>
		<description><![CDATA[Today found another very useful info from http://www.planetpostgresql.org/
tempdb=# SELECT 	pg_database.datname,
pg_size_pretty(pg_database_size(pg_database.datname)) AS size
FROM 	pg_database;
And this is what it shows:
     datname      &#124;  size
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;
postgres         &#124; 3480 kB
jasperserver  &#124; 82 MB
testdb             &#124; 3480 kB
template1      &#124; 3537 kB
template0     &#124; 3480 kB
tempdb          &#124; 127 MB
(6 rows)
Time: 143.405 ms
]]></description>
			<content:encoded><![CDATA[<p>Today found another very useful info from http://www.planetpostgresql.org/</p>
<blockquote><p>tempdb=# SELECT 	pg_database.datname,<br />
pg_size_pretty(pg_database_size(pg_database.datname)) AS size<br />
FROM 	pg_database;</p></blockquote>
<p>And this is what it shows:</p>
<blockquote><p>     datname      |  size<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;<br />
postgres         | 3480 kB<br />
jasperserver  | 82 MB<br />
testdb             | 3480 kB<br />
template1      | 3537 kB<br />
template0     | 3480 kB<br />
tempdb          | 127 MB<br />
(6 rows)</p>
<p>Time: 143.405 ms</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.synack.info/how-big-is-postgresql-database-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
