Skip to content

Commit 6ec7dcb

Browse files
author
Neo Chen
committed
update postgresql
1 parent bb5a1f5 commit 6ec7dcb

28 files changed

+347
-143
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
Netkiller 系列文档
2-
======
3-
4-
Homepage
5-
------
6-
http://netkiller.github.com/
7-
http://netkiller.sourceforge.net/
8-
9-
Author
10-
------
11-
Neo Chan(陈景峰) <netkiller@msn.com>
12-
QQ:13721218, 官方QQ群:128659835
13-
Email: netkiller@msn.com
14-
15-
How to Mirror
16-
------
17-
git clone https://github.com/netkiller/netkiller.github.com.git
18-
19-
Tip
20-
------
21-
请不要pull request,因为这篇文档是Docbook生成的。如想参与贡献请联系我,我会你给docbook xml源码地址。
22-
23-
1+
Netkiller 系列文档
2+
======
3+
4+
Homepage
5+
------
6+
http://netkiller.github.com/
7+
http://netkiller.sourceforge.net/
8+
9+
Author
10+
------
11+
Neo Chan(陈景峰) <netkiller@msn.com>
12+
QQ:13721218, 官方QQ群:128659835
13+
Email: netkiller@msn.com
14+
15+
How to Mirror
16+
------
17+
git clone https://github.com/netkiller/netkiller.github.com.git
18+
19+
Tip
20+
------
21+
请不要pull request,因为这篇文档是Docbook生成的。如想参与贡献请联系我,我会你给docbook xml源码地址。
22+
23+

postgresql/author.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
1111

1212
<p>程序猿,攻城狮,挨踢民工, UNIX like Evangelist, 业余无线电爱好者(呼号:BG7NYT),户外运动,山地骑行以及摄影爱好者。</p>
1313
<p>《Netkiller 系列 手札》的作者</p>
14-
15-
<p>1981年1月19日(庚申年腊月十四)出生于黑龙江省青冈县建设乡双富大队第一小队</p>
16-
<p>1989年9岁随父母迁居至黑龙江省伊春市,悲剧的天朝教育,不知道那门子归定,转学必须降一级,我本应该上一年级,但体制让我上学前班,那年多都10岁了</p>
17-
<p>1995年小学毕业,体制规定借读要交3000两银子(我曾想过不升初中),亲戚单位分楼告别平房,楼里没有地方放东西,把2麻袋书送给我,无意中发现一本电脑书BASIC语言,我竟然看懂了,对于电脑知识追求一发而不可收,后面顶零花钱,压岁钱主要用来买电脑书《MSDOS 6.22》《新编Unix实用大全》《跟我学Foxbase》。。。。。。</p>
18-
<p>1996年第一次接触UNIX操作系统,BSD UNIX, Microsoft Xinux(盖茨亲自写的微软Unix,知道的人不多) </p>
19-
<p>1997年自学Turbo C语言,苦于没有电脑,后来学校建了微机室才第一次使用QBASIC(DOS 6.22 自带命令),那个年代只能通过软盘拷贝转播,Trubo C编译器始终没有搞到,</p>
20-
<p>1997年第一次上Internet网速只有9600Bps, 当时全国兴起各种信息港域名格式是www.xxxx.info.net, 访问的第一个网站是NASA下载了很多火星探路者拍回的照片,还有“淞沪”sohu的前身</p>
21-
<p>1998~2000年在哈尔宾学习计算机,充足的上机时间,但老师让我们练打字(明伦五笔/WT)打字不超过80个/每分钟还要强化训练,不过这个给我的键盘功夫打了好底。</p>
22-
<p>1999年学校的电脑终于安装了光驱,在一张工具盘上终于找到了Turbo C与Quick Basic编译器,当时对VGA图形编程非常感兴趣,通过INT33中断控制鼠标,使用绘图函数模仿windows界面。还有操作 UCDOS 中文字库,绘制矢量与点阵字体。</p>
23-
<p>2000年沉迷于Windows NT与Back Office各种技术,神马主域控制器,DHCP,WINS,IIS,域名服务器,Exchange邮件服务器,MS Proxy, NetMeeting...以及ASP+MS SQL开发;用56K猫下载了一张LINUX。ISO镜像,安装后我兴奋的24小时没有睡觉。</p>
14+
<div class="sidebar" title="成长阶段"><div class="titlepage"><div><div><p class="title"><strong>成长阶段</strong></p></div></div></div>
15+
16+
<p>1981年1月19日(庚申年腊月十四)出生于黑龙江省青冈县建设乡双富大队第一小队</p>
17+
<p>1989年9岁随父母迁居至黑龙江省伊春市,悲剧的天朝教育,不知道那门子归定,转学必须降一级,我本应该上一年级,但体制让我上学前班,那年多都10岁了</p>
18+
<p>1995年小学毕业,体制规定借读要交3000两银子(我曾想过不升初中),亲戚单位分楼告别平房,楼里没有地方放东西,把2麻袋书送给我,无意中发现一本电脑书BASIC语言,我竟然看懂了,对于电脑知识追求一发而不可收,后面顶零花钱,压岁钱主要用来买电脑书《MSDOS 6.22》《新编Unix实用大全》《跟我学Foxbase》。。。。。。</p>
19+
<p>1996年第一次接触UNIX操作系统,BSD UNIX, Microsoft Xinux(盖茨亲自写的微软Unix,知道的人不多) </p>
20+
<p>1997年自学Turbo C语言,苦于没有电脑,后来学校建了微机室才第一次使用QBASIC(DOS 6.22 自带命令),那个年代只能通过软盘拷贝转播,Trubo C编译器始终没有搞到,</p>
21+
<p>1997年第一次上Internet网速只有9600Bps, 当时全国兴起各种信息港域名格式是www.xxxx.info.net, 访问的第一个网站是NASA下载了很多火星探路者拍回的照片,还有“淞沪”sohu的前身</p>
22+
<p>1998~2000年在哈尔滨学习计算机,充足的上机时间,但老师让我们练打字(明伦五笔/WT)打字不超过80个/每分钟还要强化训练,不过这个给我的键盘功夫打了好底。</p>
23+
<p>1999年学校的电脑终于安装了光驱,在一张工具盘上终于找到了Turbo C与Quick Basic编译器,当时对VGA图形编程非常感兴趣,通过INT33中断控制鼠标,使用绘图函数模仿windows界面。还有操作 UCDOS 中文字库,绘制矢量与点阵字体。</p>
24+
<p>2000年沉迷于Windows NT与Back Office各种技术,神马主域控制器,DHCP,WINS,IIS,域名服务器,Exchange邮件服务器,MS Proxy, NetMeeting...以及ASP+MS SQL开发;用56K猫下载了一张LINUX。ISO镜像,安装后我兴奋的24小时没有睡觉。</p>
25+
</div>
2426
<div class="sidebar" title="职业生涯"><div class="titlepage"><div><div><p class="title"><strong>职业生涯</strong></p></div></div></div>
2527

2628
<p>2001年来深圳进城打工,成为一名外来务工者. 在一个4人公司做PHP开发,当时PHP的版本是2。0, 开始使用Linux Redhat 6.2.当时很多门户网站都是用FreeBSD,但很难搞到安装盘,在网易社区认识了一个网友,从广州给我寄了一张光盘,FreeBSD 3.2</p>
@@ -83,6 +85,7 @@
8385
<p>Disqus: <a class="ulink" href="http://disqus.com/netkiller/" target="_top">http://disqus.com/netkiller/</a></p>
8486
<p>solidot: <a class="ulink" href="http://solidot.org/~netkiller/" target="_top">http://solidot.org/~netkiller/</a></p>
8587
<p>ITEYE: <a class="ulink" href="http://netkiller-github-com.iteye.com" target="_top">http://netkiller-github-com.iteye.com</a></p>
88+
<p>OSChina: <a class="ulink" href="http://my.oschina.net/neochen/" target="_top">http://my.oschina.net/neochen/</a></p>
8689
<p>51CTO: <a class="ulink" href="http://bg7nyt.blog.51cto.com/" target="_top">http://bg7nyt.blog.51cto.com/</a>|<a class="ulink" href="http://g.51cto.com/netkiller" target="_top">http://g.51cto.com/netkiller</a></p>
8790
<p>pengyou: <a class="ulink" href="http://www.pengyou.com/netkiller" target="_top">http://www.pengyou.com/netkiller</a></p>
8891
<p>weibo: <a class="ulink" href="http://weibo.com/bg7nyt" target="_top">http://weibo.com/bg7nyt</a></p>

postgresql/constraints.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="http://my.oschina.net/neochen/">OSChina 博客</a> |
66
<a href="http://rline.blog.51cto.com/">51CTO 博客</a></td><td><form id="searchbox_008589143145807374698:f5uprauilyy" action="/search.html"><input type="hidden" name="cx" value="008589143145807374698:f5uprauilyy" /><input type="hidden" name="cof" value="FORID:11" /><input name="q" type="text" size="25" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(126, 157, 185); border-right-color: rgb(126, 157, 185); border-bottom-color: rgb(126, 157, 185); border-left-color: rgb(126, 157, 185); padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; background-image: url(http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); background-position: 0% 50%; background-repeat: no-repeat no-repeat; " /><input type="submit" name="sa" value="Search" /><input name="siteurl" type="hidden" value="http://netkiller.sourceforge.net/" /></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_008589143145807374698%3Af5uprauilyy"></script></td></tr></table><div class="section" title="4.5. 约束"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="constraints"></a>4.5. 约束</h2></div></div></div>
77

8-
<div class="section" title="4.5.1. 检查约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp301392"></a>4.5.1. 检查约束</h3></div></div></div>
8+
<div class="section" title="4.5.1. 检查约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp312864"></a>4.5.1. 检查约束</h3></div></div></div>
99

1010
<pre class="screen">
1111

@@ -63,7 +63,7 @@
6363

6464
</pre>
6565
</div>
66-
<div class="section" title="4.5.2. 非空约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp305216"></a>4.5.2. 非空约束</h3></div></div></div>
66+
<div class="section" title="4.5.2. 非空约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp316448"></a>4.5.2. 非空约束</h3></div></div></div>
6767

6868
<pre class="screen">
6969

@@ -72,7 +72,7 @@
7272

7373
</pre>
7474
</div>
75-
<div class="section" title="4.5.3. 唯一约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp306880"></a>4.5.3. 唯一约束</h3></div></div></div>
75+
<div class="section" title="4.5.3. 唯一约束"><div class="titlepage"><div><div><h3 class="title"><a id="idp318048"></a>4.5.3. 唯一约束</h3></div></div></div>
7676

7777
<p>单字段约束</p>
7878
<pre class="screen">
@@ -264,7 +264,7 @@
264264
ERROR: Cannot insert a duplicate key into unique index group_groupname_key
265265

266266
</pre>
267-
<div class="tip" title="提示" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[提示]" src="/graphics/tippng" /></td><th align="left">提示</th></tr><tr><td align="left" valign="top"><p>Psql 命令行返回ERROR: Cannot insert a duplicate key into unique index group_groupname_key 唯一约束成功。</p></td></tr></table></div>
267+
<div class="tip" title="提示" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[提示]" src="/graphics/tip.png" /></td><th align="left">提示</th></tr><tr><td align="left" valign="top"><p>Psql 命令行返回ERROR: Cannot insert a duplicate key into unique index group_groupname_key 唯一约束成功。</p></td></tr></table></div>
268268
</div>
269269
</div><div xmlns="" id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_fbook"></a><a class="bds_twi"></a><a class="bds_ms"></a><a class="bds_msn"></a><a class="bds_buzz"></a><a class="bds_linkedin"></a><a class="bds_deli"></a><a class="bds_qzone"></a><a class="bds_qq"></a><a class="bds_tqq"></a><a class="bds_tqf"></a><a class="bds_tsina"></a><a class="bds_baidu"></a><a class="bds_renren"></a><a class="bds_t163"></a><a class="bds_tfh"></a><a class="bds_douban"></a><a class="bds_hi"></a><a class="bds_tieba"></a><a class="bds_tsohu"></a><span class="bds_more"></span><a class="shareCount"></a></div><script xmlns="" type="text/javascript" id="bdshare_js" data="type=tools"></script><script xmlns="" type="text/javascript" id="bdshell_js"></script><script xmlns="" type="text/javascript">
270270
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();

postgresql/database.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<pre class="screen">
2424
CREATE DATABASE mydb ENCODING 'UTF8' TEMPLATE template0 OWNER dbuser TABLESPACE myspace;
2525
</pre>
26-
<div class="section" title="2.2.1. 删除数据库"><div class="titlepage"><div><div><h3 class="title"><a id="idp243504"></a>2.2.1. 删除数据库</h3></div></div></div>
26+
<div class="section" title="2.2.1. 删除数据库"><div class="titlepage"><div><div><h3 class="title"><a id="idp254672"></a>2.2.1. 删除数据库</h3></div></div></div>
2727

2828
<pre class="screen">
2929
dropdb mydb

postgresql/ddl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<a href="http://netkiller.sourceforge.net/">Mirror</a> |
44
<a href="/search.html">Search</a></td><td><a href="http://netkiller-github-com.iteye.com/">ITEYE 博客</a> |
55
<a href="http://my.oschina.net/neochen/">OSChina 博客</a> |
6-
<a href="http://rline.blog.51cto.com/">51CTO 博客</a></td><td><form id="searchbox_008589143145807374698:f5uprauilyy" action="/search.html"><input type="hidden" name="cx" value="008589143145807374698:f5uprauilyy" /><input type="hidden" name="cof" value="FORID:11" /><input name="q" type="text" size="25" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(126, 157, 185); border-right-color: rgb(126, 157, 185); border-bottom-color: rgb(126, 157, 185); border-left-color: rgb(126, 157, 185); padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; background-image: url(http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); background-position: 0% 50%; background-repeat: no-repeat no-repeat; " /><input type="submit" name="sa" value="Search" /><input name="siteurl" type="hidden" value="http://netkiller.sourceforge.net/" /></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_008589143145807374698%3Af5uprauilyy"></script></td></tr></table><div class="chapter" title="第 4 章 数据定义(DDL)"><div class="titlepage"><div><div><h2 class="title"><a id="ddl"></a>第 4 章 数据定义(DDL)</h2></div></div></div><div class="toc"><p><strong>目录</strong></p><dl><dt><span class="section"><a href="ddl.html#schema">4.1. 模式</a></span></dt><dt><span class="section"><a href="types.html">4.2. Types</a></span></dt><dd><dl><dt><span class="section"><a href="types.html#idp273792">4.2.1. Enumerated Types</a></span></dt><dt><span class="section"><a href="types.html#idp275680">4.2.2. uuid</a></span></dt></dl></dd><dt><span class="section"><a href="table.html">4.3. 表</a></span></dt><dd><dl><dt><span class="section"><a href="table.html#idp279632">4.3.1. 默认时间与时区</a></span></dt><dt><span class="section"><a href="table.html#field.charset">4.3.2. 汉字做字段名</a></span></dt></dl></dd><dt><span class="section"><a href="serial.html">4.4. 序列</a></span></dt><dd><dl><dt><span class="section"><a href="serial.html#idp289872">4.4.1. 等差列 “1,2,3,4,5,6,7,8,9…”</a></span></dt><dt><span class="section"><a href="serial.html#idp292560">4.4.2. 等差列 “1,3,5,7,9…”</a></span></dt><dt><span class="section"><a href="serial.html#idp296240">4.4.3. 等差列 “2,4,6,8,10…”</a></span></dt><dt><span class="section"><a href="serial.html#idp298848">4.4.4. n1+n2</a></span></dt></dl></dd><dt><span class="section"><a href="constraints.html">4.5. 约束</a></span></dt><dd><dl><dt><span class="section"><a href="constraints.html#idp301392">4.5.1. 检查约束</a></span></dt><dt><span class="section"><a href="constraints.html#idp305216">4.5.2. 非空约束</a></span></dt><dt><span class="section"><a href="constraints.html#idp306880">4.5.3. 唯一约束</a></span></dt></dl></dd><dt><span class="section"><a href="key.html">4.6. 主键/外键</a></span></dt><dd><dl><dt><span class="section"><a href="key.html#idp319408">4.6.1. 主键</a></span></dt><dt><span class="section"><a href="key.html#idp321056">4.6.2. 外键约束</a></span></dt><dt><span class="section"><a href="key.html#idp323856">4.6.3. 案例</a></span></dt></dl></dd></dl></div>
6+
<a href="http://rline.blog.51cto.com/">51CTO 博客</a></td><td><form id="searchbox_008589143145807374698:f5uprauilyy" action="/search.html"><input type="hidden" name="cx" value="008589143145807374698:f5uprauilyy" /><input type="hidden" name="cof" value="FORID:11" /><input name="q" type="text" size="25" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(126, 157, 185); border-right-color: rgb(126, 157, 185); border-bottom-color: rgb(126, 157, 185); border-left-color: rgb(126, 157, 185); padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; background-image: url(http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); background-position: 0% 50%; background-repeat: no-repeat no-repeat; " /><input type="submit" name="sa" value="Search" /><input name="siteurl" type="hidden" value="http://netkiller.sourceforge.net/" /></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_008589143145807374698%3Af5uprauilyy"></script></td></tr></table><div class="chapter" title="第 4 章 数据定义(DDL)"><div class="titlepage"><div><div><h2 class="title"><a id="ddl"></a>第 4 章 数据定义(DDL)</h2></div></div></div><div class="toc"><p><strong>目录</strong></p><dl><dt><span class="section"><a href="ddl.html#schema">4.1. 模式</a></span></dt><dt><span class="section"><a href="types.html">4.2. Types</a></span></dt><dd><dl><dt><span class="section"><a href="types.html#idp284944">4.2.1. Enumerated Types</a></span></dt><dt><span class="section"><a href="types.html#idp286736">4.2.2. uuid</a></span></dt></dl></dd><dt><span class="section"><a href="table.html">4.3. 表</a></span></dt><dd><dl><dt><span class="section"><a href="table.html#idp290512">4.3.1. 默认时间与时区</a></span></dt><dt><span class="section"><a href="table.html#field.charset">4.3.2. 汉字做字段名</a></span></dt></dl></dd><dt><span class="section"><a href="serial.html">4.4. 序列</a></span></dt><dd><dl><dt><span class="section"><a href="serial.html#idp300912">4.4.1. 等差列 “1,2,3,4,5,6,7,8,9…”</a></span></dt><dt><span class="section"><a href="serial.html#idp303600">4.4.2. 等差列 “1,3,5,7,9…”</a></span></dt><dt><span class="section"><a href="serial.html#idp307344">4.4.3. 等差列 “2,4,6,8,10…”</a></span></dt><dt><span class="section"><a href="serial.html#idp310080">4.4.4. n1+n2</a></span></dt></dl></dd><dt><span class="section"><a href="constraints.html">4.5. 约束</a></span></dt><dd><dl><dt><span class="section"><a href="constraints.html#idp312864">4.5.1. 检查约束</a></span></dt><dt><span class="section"><a href="constraints.html#idp316448">4.5.2. 非空约束</a></span></dt><dt><span class="section"><a href="constraints.html#idp318048">4.5.3. 唯一约束</a></span></dt></dl></dd><dt><span class="section"><a href="key.html">4.6. 主键/外键</a></span></dt><dd><dl><dt><span class="section"><a href="key.html#idp330544">4.6.1. 主键</a></span></dt><dt><span class="section"><a href="key.html#idp332192">4.6.2. 外键约束</a></span></dt><dt><span class="section"><a href="key.html#idp334992">4.6.3. 案例</a></span></dt></dl></dd></dl></div>
77

88
<div class="section" title="4.1. 模式"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="schema"></a>4.1. 模式</h2></div></div></div>
99

0 commit comments

Comments
 (0)