<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Create PostgreSQL Table Partitioning (Part 1)</title>
	<atom:link href="http://www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/</link>
	<description>If !1 0 &#124; Linux and Development Guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:09:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<a href="http://www.if-not-true-then-false.com/hp/fitting.php" style="padding:0;margin:0;" rel="nofollow"><span style="display:none;">service</span></a>	<item>
		<title>By: didik prasetyo</title>
		<link>http://www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/comment-page-1/#comment-18229</link>
		<dc:creator>didik prasetyo</dc:creator>
		<pubDate>Tue, 21 Jun 2011 08:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.if-not-true-then-false.com/?p=247#comment-18229</guid>
		<description>for this query i have problem if im update  with enter grade out of range will error
example im insert 
INSERT INTO impressions_by_day(
            advertiser_id, &quot;day&quot;, impressions)
    VALUES (1234, &#039;2009-01-02&#039;, 756);

and im update 

UPDATE impressions_by_day
   SET advertiser_id=1234, day=&#039;2008-01-02&#039;, impressions=756
 WHERE day=&#039;2009-01-02&#039;;
 
then error 
ERROR: new row for relation &quot;impressions_by_day_y2009m1ms2&quot; violates check constraint &quot;impressions_by_day_y2009m1ms2_day_check&quot;
SQL state: 23514

except im upgrade with  range day ( NEW.DAY &gt;= DATE &#039;2009-01-01&#039; AND NEW.DAY &lt; DATE &#039;2009-03-01&#039; )

how to solution with this case

Thanks</description>
		<content:encoded><![CDATA[<p>for this query i have problem if im update  with enter grade out of range will error<br />
example im insert<br />
INSERT INTO impressions_by_day(<br />
            advertiser_id, &#8220;day&#8221;, impressions)<br />
    VALUES (1234, &#8217;2009-01-02&#8242;, 756);</p>
<p>and im update </p>
<p>UPDATE impressions_by_day<br />
   SET advertiser_id=1234, day=&#8217;2008-01-02&#8242;, impressions=756<br />
 WHERE day=&#8217;2009-01-02&#8242;;</p>
<p>then error<br />
ERROR: new row for relation &#8220;impressions_by_day_y2009m1ms2&#8243; violates check constraint &#8220;impressions_by_day_y2009m1ms2_day_check&#8221;<br />
SQL state: 23514</p>
<p>except im upgrade with  range day ( NEW.DAY &gt;= DATE &#8217;2009-01-01&#8242; AND NEW.DAY &lt; DATE &#039;2009-03-01&#039; )</p>
<p>how to solution with this case</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/comment-page-1/#comment-17941</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Wed, 20 Apr 2011 05:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.if-not-true-then-false.com/?p=247#comment-17941</guid>
		<description>Hi Erick,

Glad to hear that you like this article.

You don&#039;t need UPDATE and DELETE triggers, INSERT trigger is enough. You could test it easily, just create test tables, INSERT, UPDATE and DELETE rows. And you can of course use EXPLAIN to see what is happening. :)</description>
		<content:encoded><![CDATA[<p>Hi Erick,</p>
<p>Glad to hear that you like this article.</p>
<p>You don&#8217;t need UPDATE and DELETE triggers, INSERT trigger is enough. You could test it easily, just create test tables, INSERT, UPDATE and DELETE rows. And you can of course use EXPLAIN to see what is happening. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/comment-page-1/#comment-17937</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Tue, 19 Apr 2011 19:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.if-not-true-then-false.com/?p=247#comment-17937</guid>
		<description>Great, very clear article. 

Question: will the INSERT trigger be enough, or do I also need to create similar UPDATE and DELETE triggers? 

Thanks</description>
		<content:encoded><![CDATA[<p>Great, very clear article. </p>
<p>Question: will the INSERT trigger be enough, or do I also need to create similar UPDATE and DELETE triggers? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.if-not-true-then-false.com/2009/howto-create-postgresql-table-partitioning-part-1/feed/ ) in 0.08296 seconds, on Feb 10th, 2012 at 8:40 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 10th, 2012 at 9:40 am UTC -->
