<?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>AquilaX's development blog &#187; PostgreSQL</title>
	<atom:link href="http://dev.horemag.net/category/postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.horemag.net</link>
	<description>code and so on...</description>
	<lastBuildDate>Thu, 02 Feb 2012 08:29:50 +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>Malko ERP basic database</title>
		<link>http://dev.horemag.net/2011/07/01/malko-erp-basic-database/</link>
		<comments>http://dev.horemag.net/2011/07/01/malko-erp-basic-database/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 09:41:57 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[Malko-ERP]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=125</guid>
		<description><![CDATA[Let's start with the product management. I'll try to keep it simple for the time being. My weapon of choice, when designing the database schema is the almost great WWW SQL Designer. 
Right now the schema looks like this:

And the XML file is located here.
]]></description>
			<content:encoded><![CDATA[<p>Let's start with the product management. I'll try to keep it simple for the time being. My weapon of choice, when designing the database schema is the almost great <a href="http://code.google.com/p/wwwsqldesigner/" onclick="javascript:urchinTracker('/outbound/article/http://code.google.com/p/wwwsqldesigner/');">WWW SQL Designer</a>. </p>
<p>Right now the schema looks like this:</p>
<p><img src="http://i.imgur.com/jc921.png" alt="ERP Database Schema" /></p>
<p>And the XML file is located <a href="https://github.com/aquilax/malko-erp/blob/456c4c58c194c92e7c1af6a54b3e944160fa5f37/_files/schema.xml" onclick="javascript:urchinTracker('/outbound/article/https://github.com/aquilax/malko-erp/blob/456c4c58c194c92e7c1af6a54b3e944160fa5f37/_files/schema.xml');">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2011/07/01/malko-erp-basic-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move table in postgres to different schema</title>
		<link>http://dev.horemag.net/2009/08/26/move-table-in-postgres-to-different-schema/</link>
		<comments>http://dev.horemag.net/2009/08/26/move-table-in-postgres-to-different-schema/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:15:00 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=102</guid>
		<description><![CDATA[To move table to different schema in PostgreSQL use:
ALTER TABLE table_name SET SCHEMA schema_name;
]]></description>
			<content:encoded><![CDATA[<p>To move table to different schema in PostgreSQL use:</p>
<p>ALTER TABLE <em>table_name</em> SET SCHEMA <em>schema_name</em>;</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2009/08/26/move-table-in-postgres-to-different-schema/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable PL/SQL for Database in Postgres</title>
		<link>http://dev.horemag.net/2008/11/19/enable-plsql-for-database-in-postgres/</link>
		<comments>http://dev.horemag.net/2008/11/19/enable-plsql-for-database-in-postgres/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 09:58:47 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=64</guid>
		<description><![CDATA[To enable PL/SQL in PostgreSQL use:
&#160;
CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler
LANCOMPILER 'PL/pgSQL';
&#160;
]]></description>
			<content:encoded><![CDATA[<p>To enable PL/SQL in PostgreSQL use:</p>
<pre class="sql">&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">LANGUAGE</span> <span style="color: #ff0000;">'plpgsql'</span> HANDLER plpgsql_call_handler
LANCOMPILER <span style="color: #ff0000;">'PL/pgSQL'</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2008/11/19/enable-plsql-for-database-in-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alter Columns Position in Postgres</title>
		<link>http://dev.horemag.net/2008/11/14/alter-columns-position-in-postgres/</link>
		<comments>http://dev.horemag.net/2008/11/14/alter-columns-position-in-postgres/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 06:19:08 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=63</guid>
		<description><![CDATA[Some workarounds to alter columns position in Postgres
]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.postgresql.org/wiki/Alter_column_position" onclick="javascript:urchinTracker('/outbound/article/http://wiki.postgresql.org/wiki/Alter_column_position');">Some workarounds</a> to alter columns position in Postgres</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2008/11/14/alter-columns-position-in-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL_CALC_FOUND_ROWS (kind of) for postgres</title>
		<link>http://dev.horemag.net/2008/10/06/sql_calc_found_rows-kind-of-for-postgres/</link>
		<comments>http://dev.horemag.net/2008/10/06/sql_calc_found_rows-kind-of-for-postgres/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 15:18:31 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[paging]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=60</guid>
		<description><![CDATA[When I switched from MySQL to PostgreSQL, one of the things I missed the most was the ease of paging using SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS() afterwards. One of the places I use it heavily is in my Table class, which generates, sortable, filterable and paged HTML table based on an SQL Query. The tough spot [...]]]></description>
			<content:encoded><![CDATA[<p>When I switched from MySQL to PostgreSQL, one of the things I missed the most was the ease of paging using SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS() afterwards. One of the places I use it heavily is in my Table class, which generates, sortable, filterable and paged HTML table based on an SQL Query. The tough spot was to get all the records' count, without supplying second query.</p>
<p>I found the solution in ADODB's Pager class and it is the following:</p>
<p>Given the query: [SQL] (without LIMIT and OFFSET), execute the following query:</p>
<pre class="mysql">&nbsp;
<span style="color: #993333; font-weight: bold;">SELECT</span> Count<span style="color: #66cc66;">&#40;</span>*<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span>SQL<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> AS foo;
&nbsp;</pre>
<p>I know it's not as easy as SQL_CALC_FOUND_ROWS  but it works;</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2008/10/06/sql_calc_found_rows-kind-of-for-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

