<?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: Tips for MySQL to PostgreSQL Switch</title>
	<atom:link href="http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/</link>
	<description></description>
	<lastBuildDate>Thu, 04 Mar 2010 11:43:30 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-15083</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Tue, 30 Sep 2008 16:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-15083</guid>
		<description>If that query isn&#039;t working, try moving the +1 out of the select statement like this:&lt;br&gt;&lt;br&gt;ALTER SEQUENCE univers_id_seq RESTART WITH (SELECT max(id) FROM univers)+1;</description>
		<content:encoded><![CDATA[<p>If that query isn&#39;t working, try moving the +1 out of the select statement like this:</p>
<p>ALTER SEQUENCE univers_id_seq RESTART WITH (SELECT max(id) FROM univers)+1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emilien</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-15082</link>
		<dc:creator>Emilien</dc:creator>
		<pubDate>Sun, 28 Sep 2008 10:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-15082</guid>
		<description>Hello,&lt;br&gt;do you know how to do something like this ?&lt;br&gt;&lt;br&gt;ALTER SEQUENCE univers_id_seq RESTART WITH (SELECT max(id) + 1 FROM univers);&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Emilien</description>
		<content:encoded><![CDATA[<p>Hello,<br />do you know how to do something like this ?</p>
<p>ALTER SEQUENCE univers_id_seq RESTART WITH (SELECT max(id) + 1 FROM univers);</p>
<p>Thanks<br />Emilien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-13338</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Fri, 11 Jul 2008 14:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-13338</guid>
		<description>I noticed another case I may have missed, so I edited the post to catch when the key may be a smallint.&lt;br&gt;&lt;br&gt;Try running these 4 queries. &lt;br&gt;&lt;br&gt;&lt;br&gt;CREATE TABLE manila_area_tbl&lt;br&gt;(&lt;br&gt;area_no SERIAL,&lt;br&gt;area_name varchar(65) NOT NULL,&lt;br&gt;disp_flag char(1) NOT NULL default 1,&lt;br&gt;disp_no smallint NOT NULL,&lt;br&gt;del_flag char(1) NOT NULL default 0,&lt;br&gt;PRIMARY KEY (area_no)&lt;br&gt;)   ;&lt;br&gt;&lt;br&gt;CREATE INDEX disp_no ON manila_area_tbl (disp_no);&lt;br&gt;&lt;br&gt;CREATE INDEX del_flag ON manila_area_tbl (del_flag);&lt;br&gt;&lt;br&gt;ALTER SEQUENCE manila_area_tbl_area_no_seq RESTART WITH 25;</description>
		<content:encoded><![CDATA[<p>I noticed another case I may have missed, so I edited the post to catch when the key may be a smallint.</p>
<p>Try running these 4 queries. </p>
<p>CREATE TABLE manila_area_tbl<br />(<br />area_no SERIAL,<br />area_name varchar(65) NOT NULL,<br />disp_flag char(1) NOT NULL default 1,<br />disp_no smallint NOT NULL,<br />del_flag char(1) NOT NULL default 0,<br />PRIMARY KEY (area_no)<br />)   ;</p>
<p>CREATE INDEX disp_no ON manila_area_tbl (disp_no);</p>
<p>CREATE INDEX del_flag ON manila_area_tbl (del_flag);</p>
<p>ALTER SEQUENCE manila_area_tbl_area_no_seq RESTART WITH 25;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-9595</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-9595</guid>
		<description>I noticed another case I may have missed, so I edited the post to catch when the key may be a smallint.

Try running these 4 queries. 


CREATE TABLE manila_area_tbl
(
area_no SERIAL,
area_name varchar(65) NOT NULL,
disp_flag char(1) NOT NULL default 1,
disp_no smallint NOT NULL,
del_flag char(1) NOT NULL default 0,
PRIMARY KEY (area_no)
)   ;

CREATE INDEX disp_no ON manila_area_tbl (disp_no);

CREATE INDEX del_flag ON manila_area_tbl (del_flag);

ALTER SEQUENCE manila_area_tbl_area_no_seq RESTART WITH 25;</description>
		<content:encoded><![CDATA[<p>I noticed another case I may have missed, so I edited the post to catch when the key may be a smallint.</p>
<p>Try running these 4 queries. </p>
<p>CREATE TABLE manila_area_tbl<br />
(<br />
area_no SERIAL,<br />
area_name varchar(65) NOT NULL,<br />
disp_flag char(1) NOT NULL default 1,<br />
disp_no smallint NOT NULL,<br />
del_flag char(1) NOT NULL default 0,<br />
PRIMARY KEY (area_no)<br />
)   ;</p>
<p>CREATE INDEX disp_no ON manila_area_tbl (disp_no);</p>
<p>CREATE INDEX del_flag ON manila_area_tbl (del_flag);</p>
<p>ALTER SEQUENCE manila_area_tbl_area_no_seq RESTART WITH 25;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilbert</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-13337</link>
		<dc:creator>gilbert</dc:creator>
		<pubDate>Fri, 11 Jul 2008 06:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-13337</guid>
		<description>can you give me the sql equivalent of this to postgresql, i&#039;ll be using phppgadmin thanks...&lt;br&gt;&lt;br&gt;CREATE TABLE manila_area_tbl&lt;br&gt;(&lt;br&gt;	area_no tinyint(4) NOT NULL auto_increment,&lt;br&gt;	area_name varchar(65) NOT NULL,&lt;br&gt;	disp_flag char(1) NOT NULL default &#039;1&#039;,&lt;br&gt;	disp_no tinyint(4) NOT NULL,&lt;br&gt;	del_flag char(1) NOT NULL default &#039;0&#039;,&lt;br&gt;	PRIMARY KEY  (`area_no`),&lt;br&gt;	KEY disp_no` (`disp_no`),KEY `del_flag` (`del_flag`)&lt;br&gt;) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25;</description>
		<content:encoded><![CDATA[<p>can you give me the sql equivalent of this to postgresql, i&#39;ll be using phppgadmin thanks&#8230;</p>
<p>CREATE TABLE manila_area_tbl<br />(<br />	area_no tinyint(4) NOT NULL auto_increment,<br />	area_name varchar(65) NOT NULL,<br />	disp_flag char(1) NOT NULL default &#39;1&#39;,<br />	disp_no tinyint(4) NOT NULL,<br />	del_flag char(1) NOT NULL default &#39;0&#39;,<br />	PRIMARY KEY  (`area_no`),<br />	KEY disp_no` (`disp_no`),KEY `del_flag` (`del_flag`)<br />) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilbert</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-9540</link>
		<dc:creator>gilbert</dc:creator>
		<pubDate>Fri, 11 Jul 2008 05:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-9540</guid>
		<description>can you give me the sql equivalent of this to postgresql, i&#039;ll be using phppgadmin thanks...

CREATE TABLE manila_area_tbl
(
	area_no tinyint(4) NOT NULL auto_increment,
	area_name varchar(65) NOT NULL,
	disp_flag char(1) NOT NULL default &#039;1&#039;,
	disp_no tinyint(4) NOT NULL,
	del_flag char(1) NOT NULL default &#039;0&#039;,
	PRIMARY KEY  (`area_no`),
	KEY disp_no` (`disp_no`),KEY `del_flag` (`del_flag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25;</description>
		<content:encoded><![CDATA[<p>can you give me the sql equivalent of this to postgresql, i&#8217;ll be using phppgadmin thanks&#8230;</p>
<p>CREATE TABLE manila_area_tbl<br />
(<br />
	area_no tinyint(4) NOT NULL auto_increment,<br />
	area_name varchar(65) NOT NULL,<br />
	disp_flag char(1) NOT NULL default &#8216;1&#8242;,<br />
	disp_no tinyint(4) NOT NULL,<br />
	del_flag char(1) NOT NULL default &#8216;0&#8242;,<br />
	PRIMARY KEY  (`area_no`),<br />
	KEY disp_no` (`disp_no`),KEY `del_flag` (`del_flag`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; 从MySQL迁移到PostgreSQL的注意事项 &#187; WEB实用技术文摘</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-8761</link>
		<dc:creator>&#187; 从MySQL迁移到PostgreSQL的注意事项 &#187; WEB实用技术文摘</dc:creator>
		<pubDate>Thu, 03 Jul 2008 11:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-8761</guid>
		<description>[...] 详细内容 [...]</description>
		<content:encoded><![CDATA[<p>[...] 详细内容 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Información de Tecnologías&#187;Archivo del blog &#187; ¿Quieres migrar tus tablas desde MySQL a PostgreSQL?</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-8732</link>
		<dc:creator>Información de Tecnologías&#187;Archivo del blog &#187; ¿Quieres migrar tus tablas desde MySQL a PostgreSQL?</dc:creator>
		<pubDate>Thu, 03 Jul 2008 01:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-8732</guid>
		<description>[...] te encuentras en la situación descrita en el título, encontré unos tips para hacerlo de una forma sencilla. El autor del HowTo, nos indica que los 5 primeros pasos se [...]</description>
		<content:encoded><![CDATA[<p>[...] te encuentras en la situación descrita en el título, encontré unos tips para hacerlo de una forma sencilla. El autor del HowTo, nos indica que los 5 primeros pasos se [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-13336</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Wed, 02 Jul 2008 19:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-13336</guid>
		<description>I removed the requirement for e-mail. I had no idea WordPress handled it so poorly since I was always logged in.</description>
		<content:encoded><![CDATA[<p>I removed the requirement for e-mail. I had no idea WordPress handled it so poorly since I was always logged in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2008/07/02/tips-for-mysql-to-postgresql-switch/comment-page-1/#comment-8713</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Wed, 02 Jul 2008 18:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=38#comment-8713</guid>
		<description>I removed the requirement for e-mail. I had no idea WordPress handled it so poorly since I was always logged in.</description>
		<content:encoded><![CDATA[<p>I removed the requirement for e-mail. I had no idea WordPress handled it so poorly since I was always logged in.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
