diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/FAQ/FAQ.html | 15 | ||||
-rw-r--r-- | doc/src/FAQ/FAQ_DEV.html | 152 | ||||
-rw-r--r-- | doc/src/FAQ/FAQ_japanese.html | 25 |
3 files changed, 109 insertions, 83 deletions
diff --git a/doc/src/FAQ/FAQ.html b/doc/src/FAQ/FAQ.html index f3871873f77..debee4a81fd 100644 --- a/doc/src/FAQ/FAQ.html +++ b/doc/src/FAQ/FAQ.html @@ -10,7 +10,7 @@ alink="#0000ff"> <H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1> - <P>Last updated: Wed Apr 18 23:05:05 EDT 2007</P> + <P>Last updated: Tue Sep 11 13:34:02 EDT 2007</P> <P>Current maintainer: Bruce Momjian (<A href= "mailto:bruce@momjian.us">bruce@momjian.us</A>) @@ -221,7 +221,7 @@ <H3 id="item1.6">1.6) What is the most recent release?</H3> - <P>The latest release of PostgreSQL is version 8.2.4.</P> + <P>The latest release of PostgreSQL is version 8.2.5.</P> <P>We plan to have a major release every year, with minor releases every few months.</P> @@ -585,8 +585,11 @@ <H3 id="item3.6">3.6) What is the upgrade process for PostgreSQL?</H3> <P>See <a - href="http://www.postgresql.org/support/versioning">http://www.postgresql.org/support/versioning</a>. - </P> + href="http://www.postgresql.org/support/versioning">http://www.postgresql.org/support/versioning</a> + for a general discussion about upgrading, and <a href= + "http://www.postgresql.org/docs/current/static/install-upgrading.html"> + http://www.postgresql.org/docs/current/static/install-upgrading.html</a> + for specific instructions.</P> <H3 id="item3.7">3.7) What computer hardware should I use?</H3> @@ -823,10 +826,6 @@ table?</TD><TD>unlimited</TD></TR> case to be stored in the column, use a <SMALL>CHECK</SMALL> constraint or a trigger.</P> - <A href="#item4.9">4.9</A>) In a query, how do I detect if a field - is <SMALL>NULL</SMALL>? How do I concatenate possible <SMALL>NULL</SMALL>s? - How can I sort on whether a field is <SMALL> NULL</SMALL> or not?<BR> - <H3 id="item4.9">4.9) In a query, how do I detect if a field is <SMALL>NULL</SMALL>? How do I concatenate possible <SMALL>NULL</SMALL>s? How can I sort on whether a field is <SMALL> NULL</SMALL> or not?</H3> diff --git a/doc/src/FAQ/FAQ_DEV.html b/doc/src/FAQ/FAQ_DEV.html index 43ff0c8447f..f14e99f07a1 100644 --- a/doc/src/FAQ/FAQ_DEV.html +++ b/doc/src/FAQ/FAQ_DEV.html @@ -13,7 +13,7 @@ <H1>Developer's Frequently Asked Questions (FAQ) for PostgreSQL</H1> - <P>Last updated: Mon Mar 19 12:52:30 EDT 2007</P> + <P>Last updated: Wed Aug 22 20:10:01 EDT 2007</P> <P>Current maintainer: Bruce Momjian (<A href= "mailto:bruce@momjian.us">bruce@momjian.us</A>)<BR> @@ -34,28 +34,29 @@ <A href="#item1.3">1.3</A>) What areas need work?<BR> <A href="#item1.4">1.4</A>) What do I do after choosing an item to work on?<BR> - <A href="#item1.5">1.5</A>) I've developed a patch, what next?<BR> - <A href="#item1.6">1.6</A>) Where can I learn more about the code?<BR> - <A href="#item1.7">1.7</A>) How do I download/update the current + <A href="#item1.5">1.5</A>) I have developed a patch, what next?<BR> + <A href="#item1.7">1.6</A>) How is a patch reviewed?<BR> + <A href="#item1.7">1.7</A>) Where can I learn more about the code?<BR> + <A href="#item1.8">1.8</A>) How do I download/update the current source tree?<BR> - <A href="#item1.8">1.8</A>) How do I test my changes?<BR> - <A href="#item1.9">1.9</A>) What tools are available for + <A href="#item1.9">1.9</A>) How do I test my changes?<BR> + <A href="#item1.10">1.10</A>) What tools are available for developers?<BR> - <A href="#item1.10">1.10</A>) What books are good for developers?<BR> - <A href="#item1.11">1.11</A>) What is configure all about?<BR> - <A href="#item1.12">1.12</A>) How do I add a new port?<BR> - <A href="#item1.13">1.13</A>) Why don't you use threads, raw + <A href="#item1.11">1.11</A>) What books are good for developers?<BR> + <A href="#item1.12">1.12</A>) What is configure all about?<BR> + <A href="#item1.13">1.13</A>) How do I add a new port?<BR> + <A href="#item1.14">1.14</A>) Why don't you use threads, raw devices, async-I/O, <insert your favorite wizz-bang feature here>?<BR> - <A href="#item1.14">1.14</A>) How are RPM's packaged?<BR> - <A href="#item1.15">1.15</A>) How are CVS branches handled?<BR> - <A href="#item1.16">1.16</A>) Where can I get a copy of the SQL + <A href="#item1.15">1.15</A>) How are RPM's packaged?<BR> + <A href="#item1.16">1.16</A>) How are CVS branches handled?<BR> + <A href="#item1.17">1.17</A>) Where can I get a copy of the SQL standards?<BR> - <A href="#item1.17">1.17</A>) Where can I get technical + <A href="#item1.18">1.18</A>) Where can I get technical assistance?<BR> - <A href="#item1.18">1.18</A>) How do I get involved in PostgreSQL web + <A href="#item1.19">1.19</A>) How do I get involved in PostgreSQL web site development?<BR> - <A href="#item1.19">1.19</A>) Why haven't you replaced CVS with SVN, Git, + <A href="#item1.20">1.20</A>) Why haven't you replaced CVS with SVN, Git, Monotone, VSS, <insert your favorite SCM system here>? @@ -85,7 +86,7 @@ development?</H3> <P>Download the code and have a look around. See <A href= - "#item1.7">1.7</A>.</P> + "#item1.8">1.8</A>.</P> <P>Subscribe to and read the <A href= "http://archives.postgresql.org/pgsql-hackers">pgsql-hackers</A> @@ -137,7 +138,7 @@ <P>You can learn more about these features by consulting the archives, the SQL standards and the recommend texts (see <A href= - "#item1.10">1.10</A>).</P> + "#item1.11">1.11</A>).</P> <H3 id="item1.4">1.4) What do I do after choosing an item to work on?</H3> @@ -161,7 +162,7 @@ <a href="http://momjian.postgresql.org/cgi-bin/pgpatches_hold"> http://momjian.postgresql.org/cgi-bin/pgpatches_hold</a>.</P> - <H3 id="item1.5">1.5) I've developed a patch, what next?</H3> + <H3 id="item1.5">1.5) I have developed a patch, what next?</H3> <P>You will need to submit the patch to pgsql-patches@postgresql.org. It will be reviewed by other contributors to the project and will be @@ -172,7 +173,7 @@ <ol> <li>Ensure that your patch is generated against the most recent version of the code, which for developers is CVS HEAD. For more on branches in - PostgreSQL, see <a href="#item1.15">1.15</a>.</li> + PostgreSQL, see <a href="#item1.16">1.16</a>.</li> <li>Try to make your patch as readable as possible by following the project's code-layout conventions. This makes it easier for the @@ -203,11 +204,12 @@ <li>New feature patches should also be accompanied by documentation patches. If you need help checking the SQL standard, see <a href= - "#item1.16">1.16</a>.</li> + "#item1.17">1.17</a>.</li> <li>Provide an implementation overview, preferably in code comments. Following the surrounding code commenting style is usually a good - approach.</li> + approach (also see <a + href="http://www.ibm.com/developerworks/linux/library/l-clear-code/?ca=dgr-FClnxw01linuxcodetips">http://www.ibm.com/developerworks/linux/library/l-clear-code/?ca=dgr-FClnxw01linuxcodetips</a>).</li> <li>If it is a performance patch, please provide confirming test results to show the benefit of your patch. It is OK to post patches @@ -223,7 +225,28 @@ <p>You will be notified via email when the patch is applied, and your name will appear in the next version of the release notes.</p> - <H3 id="item1.6">1.6) Where can I learn more about the + <H3 id="item1.6">1.6) How is a patch reviewed?</H3> + + <p>Patch committers check several things before applying a patch:</p> + + <ul> + <li>Patch follows the SQL standard or community agreed-upon behavior</li> + <li>Style merges seamlessly into the surrounding code</li> + <li>Written as simply and efficiently as possible</li> + <li>Uses the available PostgreSQL subsystems properly</li> + <li>Contains sufficient comments</li> + <li>Contains code that works on all supported operating systems</li> + <li>Has proper documentation</li> + <li>Passes all regression tests, and if needed, adds new ones</li> + <li>Behaves as expected, even under unusual cirumstances</li> + <li>Contains no reliability risks</li> + <li>Does not overly complicate the source code</li> + <li>If performance-related, has a measureable performance benefit</li> + <li>Is of sufficient usefulness to the average PostgreSQL user</li> + <li>Follows existing PostgreSQL coding standards</li> + </ul> + + <H3 id="item1.7">1.7) Where can I learn more about the code?</H3> <P>Other than documentation in the source tree itself, you can find @@ -233,7 +256,7 @@ is at <a href= "http://neilconway.org/talks/hacking/">http://neilconway.org/talks/hacking/</a></P> - <H3 id="item1.7">1.7) How do I download/update the current + <H3 id="item1.8">1.8) How do I download/update the current source tree?</H3> <P>There are several ways to obtain the source tree. Occasional @@ -248,7 +271,7 @@ "http://developer.postgresql.org/docs/postgres/cvs.html"> http://developer.postgresql.org/docs/postgres/cvs.html</A>.</P> - <H3 id="item1.8">1.8) How do I test my changes?</H3> + <H3 id="item1.9">1.9) How do I test my changes?</H3> <P><B>Basic system testing</B></P> @@ -296,7 +319,7 @@ you can use the <I>--enable-depend</I> option of <I>configure</I> to have the compiler compute the dependencies automatically.</P> - <H3 id="item1.9">1.9) What tools are available for + <H3 id="item1.10">1.10) What tools are available for developers?</H3> <P>First, all the files in the <I>src/tools</I> directory are @@ -402,21 +425,21 @@ There is also a script called <I>unused_oids</I> in <I>pgsql/src/include/catalog</I> that shows the unused oids.</P> - <H3 id="item1.10">1.10) What books are good for + <H3 id="item1.11">1.11) What books are good for developers?</H3> - <P>I have four good books, <I>An Introduction to Database - Systems,</I> by C.J. Date, Addison, Wesley, <I>A Guide to the SQL - Standard,</I> by C.J. Date, et. al, Addison, Wesley, - <I>Fundamentals of Database Systems,</I> by Elmasri and Navathe, - and <I>Transaction Processing,</I> by Jim Gray, Morgan, - Kaufmann</P> + <P>There are five good books: - <P>There is also a database performance site, with a handbook - on-line written by Jim Gray at <A href= - "http://www.benchmarkresources.com">http://www.benchmarkresources.com.</A>.</P> + <UL> + <LI><I>An Introduction to Database Systems,</I> by C.J. Date, Addison, Wesley</LI> + <LI><I>A Guide to the SQL Standard,</I> by C.J. Date, et. al, Addison, Wesley</LI> + <LI><I>Fundamentals of Database Systems,</I> by Elmasri and Navathe</LI> + <LI><I>Transaction Processing,</I> by Jim Gray, Morgan, Kaufmann</LI> + <LI><I>Transactional Information Systems</I> by Gerhard Weikum, Kaufmann</LI> + </UL + </P> - <H3 id="item1.11">1.11) What is configure all about?</H3> + <H3 id="item1.12">1.12) What is configure all about?</H3> <P>The files <I>configure</I> and <I>configure.in</I> are part of the GNU <I>autoconf</I> package. Configure allows us to test for @@ -440,7 +463,7 @@ all files derived by configure are removed, so you see only the file contained in the source distribution.</P> - <H3 id="item1.12">1.12) How do I add a new port?</H3> + <H3 id="item1.13">1.13) How do I add a new port?</H3> <P>There are a variety of places that need to be modified to add a new port. First, start in the <I>src/template</I> directory. Add an @@ -459,7 +482,7 @@ handling. There is a <I>backend/port</I> directory if you need special files for your OS.</P> - <H3 id="item1.13">1.13) Why don't you use threads, raw + <H3 id="item1.14">1.14) Why don't you use threads, raw devices, async-I/O, <insert your favorite wizz-bang feature here>?</H3> @@ -493,7 +516,7 @@ cautious about their adoption. The TODO list often contains links to discussions showing our reasoning in these areas.</P> - <H3 id="item1.14">1.14) How are RPMs packaged?</H3> + <H3 id="item1.15">1.15) How are RPMs packaged?</H3> <P>This was written by Lamar Owen and Devrim G端nd端z:</P> @@ -578,7 +601,7 @@ <P>As to why all these files aren't part of the source tree, well, unless there was a large cry for it to happen, we don't believe it should.</P> - <H3 id="item1.15">1.15) How are CVS branches managed?</H3> + <H3 id="item1.16">1.16) How are CVS branches managed?</H3> <P>This was written by Tom Lane:</P> @@ -648,7 +671,7 @@ dot-release or two, so that we won't have to double-patch the first wave of fixes.</P> - <H3 id="item1.16">1.16) Where can I get a copy of the SQL + <H3 id="item1.17">1.17) Where can I get a copy of the SQL standards?</H3> <P>There are three versions of the SQL standard: SQL-92, SQL:1999, @@ -685,7 +708,7 @@ (paper)</LI> </UL> - <H3 id="item1.17">1.17) Where can I get technical + <H3 id="item1.18">1.18) Where can I get technical assistance?</H3> <P>Many technical questions held by those new to the code have been @@ -700,7 +723,7 @@ questions about development of new features, on IRC at irc.freenode.net in the #postgresql channel.</P> - <H3 id="item1.18">1.18) How do I get involved in PostgreSQL + <H3 id="item1.19">1.19) How do I get involved in PostgreSQL web site development?</H3> <P>PostgreSQL website development is discussed on the @@ -710,7 +733,7 @@ , the code for the next version of the website is under the "portal" module.</P> - <H3 id="item1.19">1.19) Why haven't you replaced CVS with SVN, Git, + <H3 id="item1.20">1.20) Why haven't you replaced CVS with SVN, Git, Monotone, VSS, <insert your favorite SCMS here>?</H3> <P>Currently the core developers see no SCMS that will provide @@ -841,24 +864,25 @@ <DL> <DT>lfirst(i), lfirst_int(i), lfirst_oid(i)</DT> - <DD>return the data (a point, integer and OID respectively) at - list element <I>i.</I></DD> + <DD>return the data (a pointer, integer or OID respectively) of + list cell <I>i.</I></DD> <DT>lnext(i)</DT> - <DD>return the next list element after <I>i.</I></DD> + <DD>return the next list cell after <I>i.</I></DD> <DT>foreach(i, list)</DT> <DD> - loop through <I>list,</I> assigning each list element to - <I>i.</I> It is important to note that <I>i</I> is a List *, + loop through <I>list,</I> assigning each list cell to + <I>i.</I> It is important to note that <I>i</I> is a ListCell *, not the data in the <I>List</I> element. You need to use <I>lfirst(i)</I> to get at the data. Here is a typical code snippet that loops through a List containing <I>Var *'s</I> and processes each one: <PRE> -<CODE> List *list; +<CODE> + List *list; ListCell *i; foreach(i, list) @@ -878,26 +902,26 @@ <DT>lappend(list, node)</DT> - <DD>add <I>node</I> to the end of <I>list.</I> This is more - expensive that lcons.</DD> + <DD>add <I>node</I> to the end of <I>list.</I></DD> - <DT>nconc(list1, list2)</DT> + <DT>list_concat(list1, list2)</DT> - <DD>Concat <I>list2</I> on to the end of <I>list1.</I></DD> + <DD>Concatenate <I>list2</I> on to the end of <I>list1.</I></DD> - <DT>length(list)</DT> + <DT>list_length(list)</DT> <DD>return the length of the <I>list.</I></DD> - <DT>nth(i, list)</DT> + <DT>list_nth(list, i)</DT> - <DD>return the <I>i</I>'th element in <I>list.</I></DD> + <DD>return the <I>i</I>'th element in <I>list,</I> + counting from zero.</DD> - <DT>lconsi, ...</DT> + <DT>lcons_int, ...</DT> - <DD>There are integer versions of these: <I>lconsi, - lappendi</I>, etc. Also versions for OID lists: <I>lconso, - lappendo</I>, etc.</DD> + <DD>There are integer versions of these: <I>lcons_int, + lappend_int</I>, etc. Also versions for OID lists: <I>lcons_oid, + lappend_oid</I>, etc.</DD> </DL> </BLOCKQUOTE> You can print nodes easily inside <I>gdb.</I> First, to disable @@ -922,14 +946,14 @@ <H3 id="item2.4">2.4) I just added a field to a structure. What else should I do?</H3> - <P>The structures passing around from the parser, rewrite, + <P>The structures passed around in the parser, rewriter, optimizer, and executor require quite a bit of support. Most structures have support routines in <I>src/backend/nodes</I> used to create, copy, read, and output those structures (in particular, the files <I>copyfuncs.c</I> and <I>equalfuncs.c</I>. Make sure you add support for your new field to these files. Find any other places the structure might need code for your new field. <I>mkid</I> - is helpful with this (see <A href="#item1.9">1.9</A>).</P> + is helpful with this (see <A href="#item1.10">1.10</A>).</P> <H3 id="item2.5">2.5) Why do we use <I>palloc</I>() and <I>pfree</I>() to allocate memory?</H3> diff --git a/doc/src/FAQ/FAQ_japanese.html b/doc/src/FAQ/FAQ_japanese.html index a64c4b643ba..f518ca1b0f3 100644 --- a/doc/src/FAQ/FAQ_japanese.html +++ b/doc/src/FAQ/FAQ_japanese.html @@ -9,7 +9,7 @@ <div id="pgContentWrap"> <h1>PostgreSQL(ポストグレス・キュー・エル)についてよくある質問とその解答(FAQ)</h1> -<p>原文最終更新日: Tue Mar 20 13:43:40 EDT 2007</p> +<p>原文最終更新日: Last updated: Tue Apr 24 17:29:38 EDT 2007</p> <p>現在の維持管理者: Bruce Momjian (<A href="mailto:bruce@momjian.us">bruce@momjian.us</a>)<br /> Maintainer of Japanese Translation: Jun Kuwamura (<A @@ -261,7 +261,7 @@ href="mailto:juk at PostgreSQL.jp">juk at PostgreSQL.jp</a>)<br /></p> <h4 id="item1.6">1.6</a>) 最新のリリースはどれですか?</h4> - <p>PostgreSQL の最新版はバージョン 8.2.3 です。</p> + <p>PostgreSQL の最新版はバージョン 8.2.4 です。</p> <p>我々は、1年毎にメジャーリリースを、数ヵ月ごとのマイナーリリースを 行なうことを計画しています。</p> @@ -704,8 +704,12 @@ http://www.postgresql.jp/PostgreSQL/references.html</a> <h4 id="item3.6">3.6</a>) PostgreSQLのアップグレードの手順はどうなりますか?</h4> - <p>バージョン番号付けの方針については、<a - href="http://www.postgresql.org/support/versioning">http://www.postgresql.org/support/versioning</a> + <p>バージョン番号付けの方針について、更新全般についての解説は<a + href="http://www.postgresql.org/support/versioning"> + http://www.postgresql.org/support/versioning</a> を、 + そして、詳細についての説明は <a + href="http://www.postgresql.org/docs/current/static/install-upgrading.html"> + http://www.postgresql.org/docs/current/static/install-upgrading.html</a> をご覧ください。 </p> @@ -740,9 +744,9 @@ http://www.postgresql.jp/PostgreSQL/references.html</a> れは間違いです。ECC RAM、SCSI、および、高品質マザーボードは、安いハー ドウェアに比べると、より信頼性が高く、より性能も良いのです。 PostgreSQL はほとんどのハードウェアで稼働しますが、信頼性や性能が重 - 要な場合は、ハードウェアのオプションを研究することが賢明です。メーリ - ングリストでもハードウェアオプションとトレードオフについて議論するこ - とができます。</p> + 要な場合は、使用中のハードウェアのオプションについて調査することが + 賢明です。我々のメーリングリスト上でもハードウェアオプションのトレー + ドオフについて議論することができます。</p> <hr /> @@ -1289,13 +1293,13 @@ http://www.postgresql.jp/PostgreSQL/references.html</a> [訳注: 日本語版の製作については以下の通りです。 - 最終更新日: 2007年03月25日 + 最終更新日: 2007年04月25日 翻訳者: 桑村 潤 (<a href="mailto:juk at PostgreSQL.jp">Jun Kuwamura <juk at PostgreSQL.jp></a>) このFAQの和訳の作成にあたり協力をしてくださった方々(敬称は略させていただきます): 田仲 稔(<a href="mailto:Tanaka.Minoru at keiken.co.jp">Minoru TANAKA <Tanaka.Minoru at keiken.co.jp></a>) - 石井 達夫(<a href="mailto:t-ishii at sra.co.jp">Tatsuo ISHII <t-ishii at sra.co.jp></a>) + 石井 達夫(<a href="mailto:ishii at sraoss.co.jp">Tatsuo ISHII <ishii at sraoss.co.jp></a>) 齊藤 知人(<a href="mailto:tomos at elelab.nsc.co.jp">Tomohito SAITOH <tomos at elelab.nsc.co.jp></a>) 馬場 肇(<a href="mailto:baba at kusastro.kyoto-u.ac.jp">Hajime BABA <baba at kusastro.kyoto-u.ac.jp></a>) 岡本 一幸(<a href="mailto:kaz-okamoto at hitachi-system.co.jp">Kazuyuki OKAMOTO <kaz-okamoto at hitachi-system.co.jp></a>) @@ -1309,7 +1313,6 @@ http://www.postgresql.jp/PostgreSQL/references.html</a> 神谷 英孝(<a href="mailto:hkamiya at catvmics.ne.jp">Hidetaka KAMIYA <hkamiya at catvmics.ne.jp></a>) 菅原 敦(<a href="mailto:asugawar at f3.dion.ne.jp">Atsushi SUGAWARA <asugawar at f3.dion.ne.jp></a>) 稲葉 香理(<a href="mailto:i-kaori at sra.co.jp">Kaori Inaba <i-kaori at sra.co.jp></a>) - 石井 達夫(<a href="mailto:t-ishii at sra.co.jp">Tatsuo Ishii <t-ishii at sra.co.jp></a>) をはじめ、ポストグレスに関する話題豊富な日本語PostgreSQLメーリングリスト、 和訳のきっかけを作ってくれたり、いつもチェックをしてくれる @@ -1325,7 +1328,7 @@ http://www.postgresql.jp/PostgreSQL/references.html</a> <a href="http://www.PostgreSQL.jp/wg/jpugdoc/">http://www.PostgreSQL.jp/wg/jpugdoc/</a> 「JPUG文書・書籍関連分科会」 <a href="http://www.linux.or.jp/JF/JFdocs/INDEX-database.html">http://www.linux.or.jp/JF/JFdocs/INDEX-database.html</a> 「Linux JFプロジェクト」 - <a href="http://www.rccm.co.jp/~juk/pgsql/">http://www.rccm.co.jp/~juk/pgsql/</a> 「PostgreSQL Notes for Japanese」(翻訳者ページ) + <a href="http://www.linet.gr.jp/~juk/pgsql/">http://www.linet.gr.jp/~juk/pgsql/</a> 「PostgreSQL Notes for Japanese」(翻訳者ページ) なお、この和訳に関するご意見・ご質問は(<a href="mailto:juk at PostgreSQL.jp">juk at PostgreSQL.jp</a>)までお寄せください。 |