<?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>HeatWare.net &#187; Databases</title>
	<atom:link href="http://heatware.net/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://heatware.net</link>
	<description>Computer tips from A to Z: Windows, Unix, Programming, QA, and more!</description>
	<lastBuildDate>Thu, 25 Mar 2010 19:51:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to delete/drop a constraint in PostgresSQL</title>
		<link>http://heatware.net/databases/how-to-deletedrop-a-constraint-in-postgressql/</link>
		<comments>http://heatware.net/databases/how-to-deletedrop-a-constraint-in-postgressql/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 18:51:57 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=225</guid>
		<description><![CDATA[This article will show you how to drop a contraint, such as a foreign key contraint, on a PostgresSQL 8.x database.

Login to the PostgresSQL command-line interface
psql -U [username] [database_name]
Show a list of constraints on a particular table
\d [table_name]
To Delete (or Drop) the constraint, use the command:
ALTER TABLE [table_name] DROP CONSTRAINT [constraint_name];
]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to drop a contraint, such as a foreign key contraint, on a PostgresSQL 8.x database.</p>
<ol>
<li>Login to the PostgresSQL command-line interface</li>
<p><code>psql -U [username] [database_name]</code></p>
<li>Show a list of constraints on a particular table</li>
<p><code>\d [table_name]</code></p>
<li>To Delete (or Drop) the constraint, use the command:</li>
<p><code>ALTER TABLE [table_name] DROP CONSTRAINT [constraint_name];</code></ol>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/databases/how-to-deletedrop-a-constraint-in-postgressql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to parse a decimal number using &#8216;awk&#8217; and &#8216;cut&#8217; in Linux</title>
		<link>http://heatware.net/linux-unix/how-to-parse-a-decimal-number-using-awk-and-cut-in-linux/</link>
		<comments>http://heatware.net/linux-unix/how-to-parse-a-decimal-number-using-awk-and-cut-in-linux/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 20:12:36 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=191</guid>
		<description><![CDATA[This article will show you how to parse a decimal number (such as a software release number) into individual parts. For example, you can do this if you need to compare the the minor release number of two versions. There are numerous ways to accomplish the same thing using Linux and I will show you [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to parse a decimal number (such as a software release number) into individual parts. For example, you can do this if you need to compare the the minor release number of two versions. There are numerous ways to accomplish the same thing using Linux and I will show you two of them: <em>awk </em>and <em>cut</em>.</p>
<h3>Example 1 &#8211; Using awk</h3>
<p><strong>Number: 52.4</strong></p>
<p><code>echo "52.4" | awk 'BEGIN {FS="."}{print $1, $2}'</code><br />
<strong>Output:</strong> 52 4</p>
<p><code>echo "52.4" | awk 'BEGIN {FS="."}{print $1}'</code><br />
<strong>Output:</strong> 52</p>
<p><code>echo "52.4" | awk 'BEGIN {FS="."}{print $2}'</code><br />
<strong>Output:</strong> 4</p>
<h3>Example 2 &#8211; Using cut</h3>
<p><strong>Number: 1.0.2.66</strong><strong><br />
</strong></p>
<p><code>echo "1.0.2.66" | cut -d. -f1</code><br />
<strong>Output:</strong> 52 4</p>
<p><code>echo "1.0.2.66" | cut -d. -f2</code><br />
<strong>Output:</strong> 0</p>
<p><code>echo "1.0.2.66" | cut -d. -f3</code><br />
<strong>Output:</strong> 2</p>
<p><code>echo "1.0.2.66" | cut -d. -f4</code><br />
<strong>Output:</strong> 66</p>
<p>There you have it, two different methods for parsing decimal numbers!</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-to-parse-a-decimal-number-using-awk-and-cut-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a FTP server on Linux in 30 seconds</title>
		<link>http://heatware.net/linux-unix/how-to-install-a-ftp-server-on-linux-in-30-seconds/</link>
		<comments>http://heatware.net/linux-unix/how-to-install-a-ftp-server-on-linux-in-30-seconds/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 18:11:44 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=160</guid>
		<description><![CDATA[This article will show you how to install a FTP server (vsftpd) on Linux in under 30 seconds.
Installing a FTP Server on Linux
yum -y install vsftpd
After the installation is complete, you must start the FTP server by running the command:
 service start vsftpd
Thats all there is to it! A couple things to note:

The default username [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to install a FTP server (vsftpd) on Linux in under 30 seconds.</p>
<h3>Installing a FTP Server on Linux</h3>
<p><code>yum -y install vsftpd</code></p>
<p>After the installation is complete, you must start the FTP server by running the command:<br />
<code> service start vsftpd</code></p>
<p>Thats all there is to it! A couple things to note:</p>
<ul>
<li>The default username and password is <em>anonymous</em></li>
<li>The default home directory<em> </em>is <em>/var/ftp/</em></li>
<li>The default port number is<em> 21</em></li>
<li>You must have<em> </em>your firewall disabled on port 21 in order to accept outside connections</li>
</ul>
<h3>Troubleshooting</h3>
<ul>
<li>If you are unable to connect to the FTP server from a remote computer, be sure to disable the firewall on port 21. If you Linux distribution uses <em>iptables</em> to manage the firewall, use the following command:</li>
</ul>
<p><code>iptables -I RH-Firewall-1-INPUT -s 0.0.0.0/0 -p tcp -d 0.0.0.0/0 --dport 21 -m state --state NEW -j ACCEPT</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-to-install-a-ftp-server-on-linux-in-30-seconds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install,upgrade, and uninstall a Linux RPM package</title>
		<link>http://heatware.net/linux-unix/how-to-installupgrade-and-uninstall-a-linux-rpm-package/</link>
		<comments>http://heatware.net/linux-unix/how-to-installupgrade-and-uninstall-a-linux-rpm-package/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 17:35:11 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=135</guid>
		<description><![CDATA[This article will show you to how install,upgrade, and uninstall a RPM package on Linux. For additional RPM commands such as listing all installed RPMs on the box and detailed package information such as version, date created, file listing, etc. check out How to Find All Installed RPMs in Linux.
To install a RPM
rpm -ivh [package [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you to how install,upgrade, and uninstall a RPM package on Linux. For additional RPM commands such as listing all installed RPMs on the box and detailed package information such as version, date created, file listing, etc. check out <a title="How to find all installed RPMs in Linux" rel="nofollow" href="http://heatware.net/linux-unix/how-to-find-all-installed-rpms-in-linux/" target="_self">How to Find All Installed RPMs in Linux</a>.</p>
<h3>To install a RPM</h3>
<p><code>rpm -ivh [package name]</code></p>
<h3>To upgrade a RPM</h3>
<p><code>rpm -Uvh [package name]</code></p>
<h3>To uninstall a RPM</h3>
<p>First find the exact package name by issuing the following command:<br />
<code>rpm -qa | grep -i [search string]</code></p>
<p>Then begin the uninstall process by running:<br />
<code>rpm -Uvh [package name]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/linux-unix/how-to-installupgrade-and-uninstall-a-linux-rpm-package/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find PostgreSQL database size using SQL &#8216;Select&#8217;</title>
		<link>http://heatware.net/databases/find-postgresql-database-size-using-sql-select/</link>
		<comments>http://heatware.net/databases/find-postgresql-database-size-using-sql-select/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 16:06:38 +0000</pubDate>
		<dc:creator>sood</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://heatware.net/?p=49</guid>
		<description><![CDATA[This article will show you a very simple way to find the size of a PostgreSQL database using a SQL SELECT statement. This will work on PostgreSQL version 8.3.3, but should work on older versions as well.
Query
SELECT pg_database.datname,pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database where datname='database_name';
Sample Result
 datname     &#124; size
-----------------+-------
database_name &#124; 15 MB
(1 [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you a very simple way to find the size of a PostgreSQL database using a SQL <em>SELECT</em> statement. This will work on PostgreSQL version 8.3.3, but should work on older versions as well.</p>
<h3>Query</h3>
<p><code>SELECT pg_database.datname,pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database where datname='database_name';</code></p>
<h3>Sample Result</h3>
<p><code> datname     | size<br />
-----------------+-------<br />
database_name | 15 MB<br />
(1 row)</code></p>
<p>The result shows the name of the database, as well as the size which in this case is 15 MB</p>
]]></content:encoded>
			<wfw:commentRss>http://heatware.net/databases/find-postgresql-database-size-using-sql-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
