<?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>WebProNews &#187; PostgreSQL</title>
	<atom:link href="http://www.webpronews.com/tag/postgresql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webpronews.com</link>
	<description>Breaking News in Tech, Search, Social, &#38; Business</description>
	<lastBuildDate>Mon, 13 Feb 2012 04:32:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sun Picks Firm For PostgreSQL Support</title>
		<link>http://www.webpronews.com/sun-picks-firm-for-postgresql-support-2006-08</link>
		<comments>http://www.webpronews.com/sun-picks-firm-for-postgresql-support-2006-08#comments</comments>
		<pubDate>Wed, 09 Aug 2006 14:02:55 +0000</pubDate>
		<dc:creator>WebProNews Staff</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Support]]></category>

		<guid isPermaLink="false">http://www.webpronews.com/?p=30814</guid>
		<description><![CDATA[EnterpriseDB will provide technical support and professional services &#038; training to Sun Microsystems for its PostgreSQL distribution, which is integrated into Solaris 10.
]]></description>
			<content:encoded><![CDATA[<p>EnterpriseDB will provide technical support and professional services &#038; training to Sun Microsystems for its PostgreSQL distribution, which is integrated into Solaris 10.</p>
<p>The <a href=http://www.postgresql.org class=bluelink>PostgreSQL</a> project bills itself as the world&#8217;s most advanced open source database. Sun has long touted Solaris as a premier operating system platform so it makes sense to see the two together in the Solaris 10 distribution.</p>
<p><a href="http://www.enterprisedb.com/" class="bluelink">EnterpriseDB</a> will provide Sun with custom training classes for their engineering and technical support teams on PostgreSQL. Sun can provide tech support for the database, and turn to Enterprise DB for additional support.</p>
<p>The real moneymaker will come from professional services and consulting, which EnterpriseDB can deliver for PostgreSQL to Sun or Sun&#8217;s clients who implement the database.</p>
<p>EnterpriseDB has built its Advanced Server product upon the foundation provided by the open source PostgreSQL database. PostgreSQL offers a number of advanced features; the project noted it is aware of production systems using PostgreSQL to manage in excess of 4 terabytes of data.</p>
<p>&#8220;PostgreSQL is in our company DNA,&#8221; said Andy Astor, chief executive officer of EnterpriseDB. &#8220;We have spent years enhancing PostgreSQL to create EnterpriseDB Advanced Server, and we understand the underlying PostgreSQL code better than any other company on the planet.</p>
<p>Solaris 10 now comes to customers under Sun&#8217;s Common Development and Distribution License. The <a href=http://opensolaris.org class=bluelink>OpenSolaris</a> project manages Solaris 10 and other projects like the DTrace performance analysis and debugging tool; Apple recently announced DTrace would be part of the forthcoming Mac OS X Leopard distribution.</p>
<p>&#8212;<br />
Tag: </p>
<p>Add to <a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&#038;partner=wpn&#038;noui&#038;jump=close&#038;url='+encodeURIComponent(location.href)+'&#038;title='+encodeURIComponent(document.title),'delicious','toolbar=no,width=700,height=400'); return false;" CLASS="printMailTop"><img src=http://images1.ientrymail.com/webpronews/delicious-pic.png border=0> Del.icio.us</a> | <a href="javascript:void window.open('http://digg.com/submit?phase=2&#038;url='+encodeURIComponent(window.location.href)+'&#038;ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)"><img src=http://images1.ientrymail.com/webpronews/digg-pic.png border=0> Digg</a>  | <a href="javascript:void window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&#038;u='+encodeURIComponent(window.location.href)+'&#038;tag=PostgreSQL','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)"><img src=http://images1.ientrymail.com/webpronews/yahoo-pic.png border=0> Yahoo! My Web</a> | <a href="javascript:location.href='http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&#038;t='+encodeURIComponent(document.title)+' '"><img src=http://images1.ientrymail.com/webpronews/furl-pic.png border=0> Furl</a></p>
<p>Bookmark WebProNews: <a href=http://www.webpronews.com><img src=http://images.ientrymail.com/webpronews/wpn-readit.jpg border=0></a> </p>
<p><script language=JavaScript src="http://aj.600z.com/aj/1095/0/vj?z=1&#038;dim=1088&#038;pos=15"></script></p>
<p>David Utter is a staff writer for WebProNews covering technology and business. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webpronews.com/sun-picks-firm-for-postgresql-support-2006-08/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source In eHarmony Development Bliss</title>
		<link>http://www.webpronews.com/open-source-in-eharmony-development-bliss-2006-07</link>
		<comments>http://www.webpronews.com/open-source-in-eharmony-development-bliss-2006-07#comments</comments>
		<pubDate>Thu, 06 Jul 2006 17:02:55 +0000</pubDate>
		<dc:creator>WebProNews Staff</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[Ingres]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.webpronews.com/?p=30178</guid>
		<description><![CDATA[When it comes to avoiding outages that cost a business $1,000 per minute of downtime, the matchmaking site eHarmony prefers an open source stack for its operations.
]]></description>
			<content:encoded><![CDATA[<p>When it comes to avoiding outages that cost a business $1,000 per minute of downtime, the matchmaking site eHarmony prefers an open source stack for its operations.</p>
<p>Love-arrangers <a href=http://www.eharmony.com class=bluelink>eHarmony</a> have a more than passing engagement with open source software. But it&#8217;s an open marriage, as eHarmony is not looking for open source solutions to its needs, but the best solutions.</p>
<p>A <a href=http://business.newsforge.com/article.pl?sid=06/06/16/1935234&#038;from=rss class=bluelink>report</a> on NewsForge cited eHarmony VP of engineering and operations on the topic of software choices. </p>
<p>Netcraft shows the <a href=http://uptime.netcraft.com/up/graph/?host=www.eharmony.com class=bluelink>domain</a> resides behind a F5 Big-IP load balancer now, instead of reporting Linux as the server&#8217;s operating system. F5 would be an example of a &#8220;best solution&#8221; for hardware, due to its reputation for solid load balancing performance.</p>
<p>Linux of course represents one of several open source options eHarmony has made for its servers. Applications developed for eHarmony run on names that are very familiar to web developers, like <a href=http://tomcat.apache.org/ class=bluelink>Tomcat</a> for handling Java Servlets and JavaServer Pages; <a href=http://labs.jboss.com/portal/ class=bluelink>JBoss</a> for serving applications; and <a href=httpd.apache.com class=bluelink>Apache</a> as its web server of choice.</p>
<p>&#8220;It&#8217;s most of the stuff everyone is using,&#8221; Douglas said in the article. &#8220;Open source is not new to our company. We use it extensively, because the best product is often open source. We&#8217;re not zealots about open source, we just go out and look for what&#8217;s best.&#8221;</p>
<p>On the database side, eHarmony chose Oracle over robust open source options like <a href=http://www.postgresql.org class=bluelink>PostgreSQL</a> and <a href=http://www.ingres.com class=bluelink>Ingres</a>, both of which offer serious relational database choices.</p>
<p>For developers who would like to get open source in the front door of their companies, where proprietary solutions may dominate the work landscape, Douglas offers some advice in the report.</p>
<p>&#8220;Just pick the right product. Usually the concern about open source that I&#8217;ve witnessed is, &#8216;how am I gonna get support?&#8217; But even if you&#8217;re not paying for support there&#8217;s a ton of information out there. I would just find the best product for whatever I&#8217;m trying to do, and if that&#8217;s open source, there&#8217;s generally a company that will help you.&#8221;</p>
<p>&#8212;</p>
<p>Add to <a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&#038;noui&#038;jump=close&#038;url='+encodeURIComponent(location.href)+'&#038;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400'); return false;"><img src=http://images1.ientrymail.com/webpronews/delicious-pic.png border=0> Del.icio.us</a> | <a href="javascript:void window.open('http://digg.com/submit?phase=2&#038;url='+encodeURIComponent(window.location.href)+'&#038;ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)"><img src=http://images1.ientrymail.com/webpronews/digg-pic.png border=0> Digg</a>  | <a href="javascript:void window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&#038;u='+encodeURIComponent(window.location.href)+'&#038;tag=Web Development,Open Source','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)"><img src=http://images1.ientrymail.com/webpronews/yahoo-pic.png border=0> Yahoo! My Web</a> | <a href="javascript:location.href='http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&#038;t='+encodeURIComponent(document.title)+' '"><img src=http://images1.ientrymail.com/webpronews/furl-pic.png border=0> Furl</a></p>
<p>Bookmark WebProNews: <a href=http://www.webpronews.com><img src=http://images.ientrymail.com/webpronews/wpn-readit.jpg border=0></a> </p>
<p><script language=JavaScript src="http://aj.600z.com/aj/1095/0/vj?z=1&#038;dim=1088&#038;pos=15"></script></p>
<p>David Utter is a staff writer for WebProNews covering technology and business. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webpronews.com/open-source-in-eharmony-development-bliss-2006-07/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Quick Look At PostgreSQL</title>
		<link>http://www.webpronews.com/a-quick-look-at-postgresql-2006-05</link>
		<comments>http://www.webpronews.com/a-quick-look-at-postgresql-2006-05#comments</comments>
		<pubDate>Wed, 24 May 2006 21:28:43 +0000</pubDate>
		<dc:creator>WebProNews Staff</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.webpronews.com/?p=29490</guid>
		<description><![CDATA[The advanced features, open source code, and BSD licensing terms should have more people talking about the PostgreSQL database these days.
]]></description>
			<content:encoded><![CDATA[<p>The advanced features, open source code, and BSD licensing terms should have more people talking about the PostgreSQL database these days.</p>
<p>Like a number of rock bands, <a href=http://www.postgresql.org class=bluelink>PostgreSQL</a> reportedly has a significant following in Japan. By the project&#8217;s admission though, it may rate fifth in the US in popularity among database systems as of 2004.</p>
<p>MySQL receives a lot of press coverage, due to its ease of use and the prominent names of firms and agencies that have implemented it for their operations. PostgreSQL offers some <a href=http://www.postgresql.org/about/ class=bluelink>powerful features</a> in its product that developers may wish to consider.</p>
<p><a href=http://en.wikipedia.org/wiki/Multiversion_concurrency_control class=bluelink>Multi-version concurrency control</a> has been part of PostgreSQL for some time. It has native programming interfaces for a variety of languages: C/C++, Java, Perl, Python, Ruby, ODBC, and Tcl.</p>
<p>The PostgreSQL database is open source, fully <a href=http://en.wikipedia.org/wiki/ACID class=bluelink>ACID</a> compliant, includes most SQL92 and SQL99 data types, and can support storage of multimedia objects. With the growth of broadband adoption in the US and the world, that could be an important consideration for web application developers.</p>
<p><a href=http://www.postgresql.org/docs/manuals/ class=bluelink>Documentation</a> for PostgreSQL exists in online form and by PDF download in US or A4 page formats. Since the current PDF runs 12.1 MB in size, users may wish to try out the online version first.</p>
<p>Users coming in from other database systems can learn more about PostgreSQL within those pages. For example, the project lists <a href=http://www.postgresql.org/docs/8.1/interactive/plpgsql.html#PLPGSQL-ADVANTAGES class=bluelink>advantages</a> of working with the PL/pgSQL language:</p>
<p><i>
<div style=margin-left:10px; margin-right:10px>(With SQL) every SQL statement must be executed individually by the database server. </p>
<p>That means that your client application must send each query to the database server, wait for it to be processed, receive the results, do some computation, then send other queries to the server. All this incurs interprocess communication and may also incur network overhead if your client is on a different machine than the database server. </p>
<p>With PL/pgSQL you can group a block of computation and a series of queries inside the database server, thus having the power of a procedural language and the ease of use of SQL, but saving lots of time because you don&#8217;t have the whole client/server communication overhead. This can make for a considerable performance increase.</p></div>
<p></i><br />
Some developers, particularly ones in a corporate environment, may favor PostgreSQL&#8217;s BSD licensing over MySQL&#8217;s GPL terms. (Please note that MySQL does offer commercial licenses for sale through MySQL AG). BSD licensed code can be taken and incorporated into non-open source projects, and presents a more business-friendly approach.</p>
<p>&#8212;<br />
Tag: </p>
<p>Add to <a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&#038;noui&#038;jump=close&#038;url='+encodeURIComponent(location.href)+'&#038;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400'); return false;">Del.icio.us</a> | <a href="javascript:void window.open('http://digg.com/submit?phase=2&#038;url='+encodeURIComponent(window.location.href)+'&#038;ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)">DiggThis</a>  | <a href="javascript:void window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&#038;u='+encodeURIComponent(window.location.href)+'&#038;tag=PostgreSQL','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)">Yahoo! My Web</a> | <a href="javascript:location.href='http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&#038;t='+encodeURIComponent(document.title)+' '">Furl</a></p>
<p>Bookmark WebProNews: <a href=http://www.webpronews.com><img src=http://images.ientrymail.com/webpronews/wpn-readit.jpg border=0></a> </p>
<p><script language=JavaScript src="http://aj.600z.com/aj/1095/0/vj?z=1&#038;dim=1088&#038;pos=15"></script></p>
<p>David Utter is a staff writer for WebProNews covering technology and business. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webpronews.com/a-quick-look-at-postgresql-2006-05/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developers Spoiled For Free DB Choices</title>
		<link>http://www.webpronews.com/developers-spoiled-for-free-db-choices-2006-05</link>
		<comments>http://www.webpronews.com/developers-spoiled-for-free-db-choices-2006-05#comments</comments>
		<pubDate>Thu, 04 May 2006 18:03:52 +0000</pubDate>
		<dc:creator>WebProNews Staff</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.webpronews.com/?p=29003</guid>
		<description><![CDATA[It is not just MySQL or PostgreSQL offering freely available databases, as Oracle, Microsoft, and IBM all want to hook developers on lite versions of their products.
]]></description>
			<content:encoded><![CDATA[<p>It is not just MySQL or PostgreSQL offering freely available databases, as Oracle, Microsoft, and IBM all want to hook developers on lite versions of their products.</p>
<p><a href=http://www.mysql.com class=bluelink>MySQL</a> has an extensive presence online, with Yahoo and NASA using it for their services. <a href=http://www.postgresql.org/ class=bluelink>PostgreSQL</a> has its place with Red Hat and Cisco; both databases have many more users than those listed.</p>
<p>With those high-quality databases available for free, developers can pick and choose which one will best fulfill the requirements of their web applications. Both products offer ACID-compliance and transaction support among their features.</p>
<p>Despite the availability of PostgreSQL and MySQL, the powerhouses of corporate databases believe they can hook developers with versions of their mainstream database products by providing lite versions of them for free, too.</p>
<p>Various limitations, like caps on how much data can be supported or only using one processor on a multi-processor system, keep the lite versions from matching their full price counterparts. Companies hope to demonstrate that their feature sets will prove the deciding factor in choosing a proprietary system over an open source one.</p>
<p>Oracle began offering its out-of-beta version of <a href=http://www.oracle.com/technology/products/database/xe/index.html class=bluelink>10g Express Edition</a> earlier this year. IBM <a href=http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0602tham2/index.html class=bluelink>noted</a> how developers familiar with MySQL can take that knowledge to <a href=http://www-306.ibm.com/software/data/db2/udb/db2express/ class=bluelink>DB2 Express-C</a>.</p>
<p>Microsoft likewise made <a href=http://msdn.microsoft.com/vstudio/express/sql/ class=bluelink>SQL Server Express</a> available for its users. That product also integrates with the free <a href=http://msdn.microsoft.com/vstudio/express/vwd/ class=bluelink>Visual Web Developer Express</a> suites for creating web applications.</p>
<p>While all of the Express database editions from the big tech companies have been designed to bring users along from at-home hobbyists to at-work product evangelists, they do provide an inside look at how those databases could benefit web development on a larger scale.</p>
<p>&#8212;</p>
<p>Add to <script language='javascript'> document.write("<a href='http://del.icio.us/post?url="+encodeURIComponent(document.location.href)+"&#038;title="+encodeURIComponent(document.title)+"'>Del.icio.us</a>")</script> | <a href="javascript:void window.open('http://digg.com/submit?phase=2&#038;url='+encodeURIComponent(window.location.href)+'&#038;ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)">DiggThis</a> | <a href="javascript:void window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&#038;u='+encodeURIComponent(window.location.href)+'&#038;tag=MySQL,PostgreSQL,Microsoft,Oracle,IBM','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0)">Yahoo! My Web</a> | <a href="javascript:location.href='http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&#038;t='+encodeURIComponent(document.title)+' '">Furl It</a></p>
<p>Bookmark WebProNews &#8211; <a href=http://www.webpronews.com><img src=http://images.ientrymail.com/webpronews/wpn-readit.jpg border=0></a></p>
<p><script language=JavaScript src="http://aj.600z.com/aj/1095/0/vj?z=1&#038;dim=1088&#038;pos=15"></script></p>
<p>David Utter is a staff writer for WebProNews covering technology and business. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webpronews.com/developers-spoiled-for-free-db-choices-2006-05/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authenticating PostgreSQL Clients</title>
		<link>http://www.webpronews.com/authenticating-postgresql-clients-2002-05</link>
		<comments>http://www.webpronews.com/authenticating-postgresql-clients-2002-05#comments</comments>
		<pubDate>Tue, 21 May 2002 18:08:30 +0000</pubDate>
		<dc:creator>Jay Fougere</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.webpronews.com/?p=1615</guid>
		<description><![CDATA[Today&#8217;s article is about security (authentication in particular) in PostgreSQL, the most advanced open-source database available anywhere (as its developers claim!!). So what about it? We know that security is a very important concern in the present day IT world. It&#8217;s no different with databases.
]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s article is about security (authentication in particular) in PostgreSQL, the most advanced open-source database available anywhere (as its developers claim!!). So what about it? We know that security is a very important concern in the present day IT world. It&#8217;s no different with databases.</p>
<p>If the connection to a database is not secure, there can be irrevocable damages done to the company or to the owner of the database. And of course, you know the net result &#8211; a substantial loss of money and the loss of creditability with the clients (More so, if the company happens to be a bank or a credit card company). So, security is one of the top most priorities even in the database world. </p>
<p>Let&#8217;s discuss some of the ways in which we can authenticate users to ensure secure transactions in PostgreSQL. In this article, I will talk about client authentication. Encryption and Access control lists are some of the other key security issues. If you haven&#8217;t heard these terms so far, don&#8217;t panic. You&#8217;ll learn them in a short while. </p>
<p>Client authentication is one of the key features of PostgreSQL. With out it, either we sacrifice remote connectivity to the databases or allow just about anybody access to our most important data. PostgreSQL supports several types of authentication. It&#8217;s up to the database administrator to choose one of them. </p>
<p>Host-based client access is specified in the configuration file pg_hba.conf. It&#8217;s generally located in the PostgreSQL data directory (/usr/local/pgql/data/&#8211; Generally the environment variable $PGDATA is set to this path). And it&#8217;s installed automatically when you install PostgreSQL with the initdb command. I don&#8217;t discuss initdb in this article. You may consult the man pages for more information on initdb. </p>
<p>The pg_hba.conf file controls: 1) Which hosts are allowed to connect 2) How users are authenticated on each host. 3) Databases accessible by each host </p>
<p>I&#8217;ll discuss each of these in just a minute. The configuration file is read on postmaster startup and when the postmaster receives a SIGHUP. Postmaster is generally the server in a PostgreSQL database system. </p>
<p>Sample pg_hba.conf file on a Linux box </p>
<p>PostgreSQL HOST-BASED ACCESS (HBA) CONTROL FILE<br />
<table width="75%" border="1" cellpadding="2" cellspacing="0">
<tr>
<td><font face="verdana" size="1">type</font></td>
<td><font face="verdana" size="1">database</font></td>
<td><font face="verdana"size="1">ip_address</font></td>
<td><font face="verdana" size="1">mask</font></td>
<td><font face="verdana" size="1">auth_type</font></td>
<td><font face="verdana" size="1">auth_argument</font></td>
</tr>
<tr>
<td><font face="verdana" size="1">local </font></td>
<td><font face="verdana" size="1">all</font></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><font face="verdana" size="1">trust</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">host </font></td>
<td><font face="verdana" size="1">all</font></td>
<td><font face="verdana" size="1">127.0.0.1</font></td>
<td><font face="verdana" size="1">255.255.255.255</font></td>
<td><font face="verdana" size="1">trust</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">host</font></td>
<td><font face="verdana" size="1">template1 </font></td>
<td><font face="verdana" size="1">192.168.93.0</font></td>
<td><font face="verdana" size="1">255.255.255.0</font></td>
<td><font face="verdana" size="1">ident</font></td>
<td><font face="verdana" size="1">sameuser</font></td>
</tr>
<tr>
<td><font face="verdana" size="1">host</font></td>
<td><font face="verdana" size="1">template1 </font></td>
<td><font face="verdana" size="1">192.168.12.10</font></td>
<td><font face="verdana"size="1">255.255.255.255</font></td>
<td><font face="verdana" size="1">md5</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">host</font></td>
<td><font face="verdana" size="1">all </font></td>
<td><font face="verdana" size="1">192.168.54.1</font></td>
<td><font face="verdana" size="1">255.255.255.255</font></td>
<td><font face="verdana" size="1">reject</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">host</font></td>
<td><font face="verdana" size="1">all </font></td>
<td><font face="verdana" size="1">0.0.0.0 </font></td>
<td><font face="verdana" size="1">0.0.0.0</font></td>
<td><font face="verdana" size="1">krb5</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">local</font></td>
<td><font face="verdana" size="1">sameuser</font></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><font face="verdana" size="1">md5</font></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><font face="verdana" size="1">local </font></td>
<td><font face="verdana" size="1">all</font></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><font face="verdana" size="1">md5</font></td>
<td><font face="verdana" size="1">admins </font></td>
</tr>
</table>
<p>Let me discuss what each of these entries means. </p>
<p>The type field tells us what the type of the connection is. There can be three different kinds of connections. They are: a) host b) hostssl and c) local </p>
<p>Records with the type field set to &#8220;host&#8221; indicate what different networked hosts can connect to the database. A record with &#8220;hostssl&#8221; type is similar, but adds the additional information, that the connection is over a secure socket layer (SSL). A &#8220;local&#8221; type tells that the connection is from the local host via a UNIX domain socket. </p>
<p>The second field is the database name. It can be one of the following: a) the name of a PostgreSQL database b) &#8220;all&#8221; to indicate all databases c) &#8220;sameuser&#8221; to allow access only to databases with the same name as the connecting user </p>
<p>The third and fourth fields are the IP address and the subnet mask of the host from which the connection is sought. </p>
<p>The fifth field is what is the most important to us. It is the authentication type field. As I said earlier, PostgreSQL supports different types of authentication. </p>
<p>Some of them are: a) Crypt b) Md5 c) Kerberos d) PAM e) Ident f) Password authentication and g) Trust </p>
<p>Here is the definition of each of the above mentioned authentication types. These definitions are taken from the config file itself. </p>
<p><b>trust: </b>No authentication is done. Any valid username is accepted, including the PostgreSQL superuser. This option should be used only for hosts where all users are trusted.</p>
<p><b>password: </b>Authentication is done by matching a password supplied in clear by the host. If no AUTH_ARGUMENT is used, the password is compared with the user&#8217;s entry in the pg_shadow table.</p>
<p>If AUTH_ARGUMENT is specified, the username is looked up in that file in the $PGDATA directory. If the username is found but there is no password, the password is looked up in pg_shadow. If a password exists in the file, it is used instead. These secondary files allow fine-grained control over who can access which databases and whether a non-default password is required. The same file can be used in multiple records for easier administration. Password files can be maintained with the pg_passwd(1) utility. Remember, these passwords override pg_shadow passwords.</p>
<p>md5: Same as &#8220;password&#8221;, but the password is encrypted while being sent over the network. This method is preferable to &#8220;password&#8221; except for pre-7.2 clients that don&#8217;t support it. NOTE: md5 can use usernames stored in secondary password files but ignores passwords stored there. The pg_shadow password will always be used.</p>
<p><b>crypt: </b>Same as &#8220;md5&#8243;, but uses crypt for pre-7.2 clients. You can not store encrypted passwords in pg_shadow if you use this method.</p>
<p><b>ident: </b>For TCP/IP connections, authentication is done by contacting the ident server on the client host. Remember, this is only as secure as the client machine. On machines that support Unix-domain socket credentials (currently Linux, FreeBSD, NetBSD, and BSD/OS), this method also works for &#8220;local&#8221; connections.</p>
<p>AUTH_ARGUMENT is required: it determines how to map remote user names to Postgres user names. The AUTH_ARGUMENT is a map name found in the $PGDATA/pg_ident.conf file. The connection is accepted if that file contains an entry for this map name with the ident-supplied username and the requested Postgres username. The special map name &#8220;sameuser&#8221; indicates an implied map (not in pg_ident.conf) that maps each ident username to the identical PostgreSQL username.</p>
<p><b>krb4: </b>Kerberos V4 authentication is used. Allowed only for TCP/IP connections, not for local UNIX-domain sockets.</p>
<p><b>krb5: </b>Kerberos V5 authentication is used. Allowed only for TCP/IP connections, not for local UNIX-domain sockets.</p>
<p><b>pam: </b>Authentication is passed off to PAM (PostgreSQL must be configured &#8211;with-pam), using the default service name &#8220;postgresql&#8221; &#8211; you can specify your own service name, by setting AUTH_ARGUMENT to the desired service name. reject: Reject the connection. This is used to reject certain hosts that are part of a network specified later in the file. To be effective, &#8220;reject&#8221; must appear before the later entries. </p>
<p>Here is a sample pg_ident.conf file taken from the Linux box. </p>
<p>Sample pg_ident.conf file </p>
<p>PostgreSQL IDENT-BASED AUTHENTICATION MAPS<br />
This file controls ident-based authentication. It maps ident usernames to their corresponding PostgreSQL usernames. Entries are grouped by map name. Each record consists of three fields.</p>
<p>o map name<br />
o ident username<br />
o PostgreSQL username</p>
<p>It is read on postmaster startup and when the postmaster receives a SIGHUP. If you edit the file on a running system, you have to SIGHUP the postmaster for the changes to take effect. For example, the following entry equates user &#8220;james&#8221; on a remote system to PostgreSQL user &#8220;guest&#8221; in the map named &#8220;phoenix&#8221;: MAP IDENT PGUSERNAME phoenix james guest &#8220;phoenix&#8221; can now be used by an &#8220;ident&#8221; record in $DATA/pg_hba.conf. Multiple maps may be specified in this file and used by pg_hba.conf. Note that it is possible for a remote user to map to multiple PostgreSQL usernames. The PostgreSQL username specified at connection time controls which one is used. If all ident usernames and PostgreSQL usernames are the same, you don&#8217;t need this file. Instead, use the special map name &#8220;sameuser&#8221; in pg_hba.conf. </p>
<p>Hope your patience did not run out reading the files above. I am sure you realized how simple it is to make a map in our pg_ident.conf file and use it in the pg_hba.conf file for authentication. </p>
<p>Let&#8217;s now make a map of our own. MAP IDENT PGUSERNAME mymap mike guest </p>
<p>The above entry maps the user &#8216;mike&#8217; on the remote machine to the user &#8216;guest&#8217; on the machine running the PostgreSQL server. Now we can use this map to make an entry in the pg_hba.conf file like this: </p>
<p>type database ip_address mask auth_type auth_argument </p>
<p>host all 63.170.212.30 255.255.255.0 ident mymap </p>
<p>That says, any user connecting from a machine with IP address 63.170.212.30 and subnet mask 255.255.255.0 is to be authenticated by using the map &#8216;mymap&#8217; in pg_ident.conf file. Very simple, isn&#8217;t it? </p>
<p>That is about all for authentication in PostgreSQL. Hope you enjoyed the article. For more information on authentication, encryption and access control lists, please visit the links provided in the resources section. Have fun reading&#8230;</p>
<p>Jay Fougere is the IT manager for the iEntry network.  He also writes occasional articles.  If you have any IT questions, please direct them to Jay@ientry.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webpronews.com/authenticating-postgresql-clients-2002-05/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 1/27 queries in 0.020 seconds using memcached
Object Caching 380/448 objects using memcached

Served from: webpronews.com @ 2012-02-13 05:15:32 -->
