<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.huihoo.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=PyPgSQL</id>
		<title>PyPgSQL - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=PyPgSQL"/>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=PyPgSQL&amp;action=history"/>
		<updated>2026-06-18T08:52:06Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=PyPgSQL&amp;diff=13794&amp;oldid=prev</id>
		<title>2007年3月7日 (三) 15:04 Allen</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=PyPgSQL&amp;diff=13794&amp;oldid=prev"/>
				<updated>2007-03-07T15:04:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←上一版本&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2007年3月7日 (三) 15:04的版本&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;pyPgSQL is a package of two modules that provide a Python DB-API 2.0 compliant interface to PostgreSQL databases. The first module, libpq, exports the PostgreSQL C API to Python. This module is written in C and can be compiled into Python or can be dynamically loaded on demand. The second module, PgSQL, provides the DB-API 2.0 compliant interface and support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc. This module is written in Python.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;http://pypgsql.sourceforge.net/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Debian &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Debian &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; #apt-get install python2.3-pgsql&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; #apt-get install python2.3-pgsql&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=PyPgSQL&amp;diff=13793&amp;oldid=prev</id>
		<title>2007年3月7日 (三) 15:04 Allen</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=PyPgSQL&amp;diff=13793&amp;oldid=prev"/>
				<updated>2007-03-07T15:04:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Debian &lt;br /&gt;
 #apt-get install python2.3-pgsql&lt;br /&gt;
 su postgres&lt;br /&gt;
 createdb test&lt;br /&gt;
 python&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; from pyPgSQL import PgSQL&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cx = PgSQL.connect(database=&amp;quot;test&amp;quot;, client_encoding=&amp;quot;utf-8&amp;quot;, unicode_results=1)&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cu = cx.cursor()&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cu.execute(&amp;quot;set client_encoding to unicode&amp;quot;)&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cu.execute(&amp;quot;insert into test(v) values (%s)&amp;quot;, (u'\x99sterreich',))&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cu.execute(&amp;quot;select v from test&amp;quot;)&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; cu.fetchone()&lt;br /&gt;
 [u'\x99sterreich']&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt;&lt;/div&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	</feed>