Commit 5d283d89 authored by Bruce Momjian's avatar Bruce Momjian

Update russian FAQ, from Viktor Vislobokov.

parent 8fee9615
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,11 +2,10 @@ ...@@ -2,11 +2,10 @@
<HTML> <HTML>
<!-- DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN" --> <!-- DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN" -->
<!-- HTML -->
<HEAD> <HEAD>
<META name="generator" content="HTML Tidy, see www.w3.org"> <META name="generator" content="HTML Tidy, see www.w3.org">
<META http-equiv="Content-Type" content="text/html; charset=koi8-r">
<TITLE>PostgreSQL FAQ</TITLE> <TITLE>PostgreSQL FAQ</TITLE>
</HEAD> </HEAD>
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
alink="#0000ff"> alink="#0000ff">
<H1> PostgreSQL</H1> <H1> PostgreSQL</H1>
<P> : 9 23:14:53 EDT 2002</P> <P> : 20 20:47:14 EDT 2002</P>
<P> : (Bruce Momjian) (<A href= <P> : (Bruce Momjian) (<A href=
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR> "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
...@@ -32,8 +31,7 @@ ...@@ -32,8 +31,7 @@
<HR> <HR>
<H2 align="center"> </H2> <H2 align="center"> </H2>
<A href="#1.1">1.1</A>) PostgreSQL? <A href="#1.1">1.1</A>) PostgreSQL? ?<BR>
?<BR>
<A href="#1.2">1.2</A>) PostgreSQL?<BR> <A href="#1.2">1.2</A>) PostgreSQL?<BR>
<A href="#1.3">1.3</A>) Unix PostgreSQL?<BR> <A href="#1.3">1.3</A>) Unix PostgreSQL?<BR>
<A href="#1.4">1.4</A>) Unix ?<BR> <A href="#1.4">1.4</A>) Unix ?<BR>
...@@ -80,8 +78,7 @@ ...@@ -80,8 +78,7 @@
<A href="#3.7">3.7</A>) ?<BR> <A href="#3.7">3.7</A>) ?<BR>
<A href="#3.8">3.8</A>) <I>"Sorry, too many <A href="#3.8">3.8</A>) <I>"Sorry, too many
clients"</I> ?<BR> clients"</I> ?<BR>
<A href="#3.9">3.9</A>) <I>pg_sorttempNNN.NN</I> <A href="#3.9">3.9</A>) <I>pgsql_tmp</I>?<BR>
?<BR>
<A href="#3.10">3.10</A>) dump restore <A href="#3.10">3.10</A>) dump restore
PostgreSQL?<BR> PostgreSQL?<BR>
...@@ -143,6 +140,7 @@ ...@@ -143,6 +140,7 @@
<A href="#4.26">4.26</A>) / <A href="#4.26">4.26</A>) /
PL/PgSQL?<BR> PL/PgSQL?<BR>
<A href="#4.27">4.27</A>) ?<BR> <A href="#4.27">4.27</A>) ?<BR>
<A href="#4.28">4.28</A>) ?<BR>
<H2 align="center"> PostgreSQL</H2> <H2 align="center"> PostgreSQL</H2>
<A href="#5.1">5.1</A>) . <A href="#5.1">5.1</A>) .
...@@ -158,7 +156,7 @@ ...@@ -158,7 +156,7 @@
<H2 align="center"> </H2> <H2 align="center"> </H2>
<H4><A name="1.1">1.1</A>) PostgreSQL?</H4> <H4><A name="1.1">1.1</A>) PostgreSQL? ?</H4>
<P>PostgreSQL <I>Post-Gres-Q-L (---)</I>.</P> <P>PostgreSQL <I>Post-Gres-Q-L (---)</I>.</P>
...@@ -169,13 +167,12 @@ ...@@ -169,13 +167,12 @@
<SMALL>SQL</SMALL>. PostgreSQL - <SMALL>SQL</SMALL>. PostgreSQL -
.</P> .</P>
<P> PostgreSQL , <P> PostgreSQL ,
Internet, . ,
. , (Marc G. Fournier) (<A href=
(Marc G. Fournier) (<A href=
"mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A>). (. "mailto:scrappy@PostgreSQL.org">scrappy@PostgreSQL.org</A>). (.
, ). <A href="#1.6">1.6</A> , ).
PostgreSQL.</P> PostgreSQL.</P>
<P> PostgreSQL 1.01 (Andrew Yu) <P> PostgreSQL 1.01 (Andrew Yu)
(Jolly Chen). (Jolly Chen).
...@@ -240,10 +237,10 @@ ...@@ -240,10 +237,10 @@
<P><STRONG></STRONG></P> <P><STRONG></STRONG></P>
<P> MS Windows C <P> MS Windows C
<I>libpq</I>, psql . <I>libpq</I>, psql, .
, MS Windows , MS Windows
TCP/IP , Unix TCP/IP , Unix
. <I>win31.mak</I> , . <I>win32.mak</I> ,
<I>libpq</I> <I>libpq</I>
<I>psql</I> Win32. PostgreSQL <I>psql</I> Win32. PostgreSQL
<SMALL>ODBC</SMALL>.</P> <SMALL>ODBC</SMALL>.</P>
...@@ -252,10 +249,12 @@ ...@@ -252,10 +249,12 @@
<P> Windows NT Win2k, <P> Windows NT Win2k,
Cygwin, Unix Cygwin, Unix
NT. <I>pgsql/doc/FAQ_MSWIN</I> <A href= NT. <I>pgsql/doc/FAQ_MSWIN</I>
"http://www.postgresql.org/docs/faq-mswin.html">MS Windows FAQ</A> MS Windows FAQ <A href="http://www.postgresql.org/docs/faq-mswin.html">
. PostgreSQL http://www.PostgreSQL.org/docs/faq-mswin.html</A>.</P>
- Microsoft.</P>
<P>PostgreSQL, MS Win NT/2000/XP
.</P>
<H4><A name="1.5">1.5</A>) PostgreSQL?</H4> <H4><A name="1.5">1.5</A>) PostgreSQL?</H4>
...@@ -321,7 +320,7 @@ ...@@ -321,7 +320,7 @@
<P> <P>
<A href= <A href=
"http://www.postgresql.org/users-lounge/commercial-support.html">http://www.postgresql.org/users-lounge/commercial-support.html</A>.</P> "http://www.postgresql.org/users-lounge/commercial-support.html">http://www.PostgreSQL.org/users-lounge/commercial-support.html</A>.</P>
<H4><A name="1.7">1.7</A>) ?</H4> <H4><A name="1.7">1.7</A>) ?</H4>
...@@ -341,8 +340,8 @@ ...@@ -341,8 +340,8 @@
"http://www.PostgreSQL.org/docs/awbook.html">http://www.PostgreSQL.org/docs/awbook.html</A> "http://www.PostgreSQL.org/docs/awbook.html">http://www.PostgreSQL.org/docs/awbook.html</A>
<a href="http://www.commandprompt.com/ppbook/">http://www.commandprompt.com/ppbook/</a>. <a href="http://www.commandprompt.com/ppbook/">http://www.commandprompt.com/ppbook/</a>.
PostgreSQL, PostgreSQL,
<a href="http://www.postgresql.org/books/">http://www.postgresql.org/books/</a>. <a href="http://www.ca.postgresql.org/books/">http://www.ca.PostgreSQL.org/books/</a>.
, <a href="http://techdocs.postgresql.org">http://techdocs.postgresql.org/</a> , <a href="http://techdocs.postgresql.org">http://techdocs.PostgreSQL.org/</a>
PostgreSQL.</p> PostgreSQL.</p>
...@@ -405,8 +404,8 @@ ...@@ -405,8 +404,8 @@
<H4><A name="1.13">1.13</A>) ??</H4> <H4><A name="1.13">1.13</A>) ??</H4>
<P> <A href= <P> PostgreSQL BugTool <A href=
"http://www.postgresql.org/bugs/bugs.php">PostgreSQL BugTool</A>, "http://www.postgresql.org/bugs/bugs.php">http://www.PostgreSQL.org/bugs/bugs.php</A>,
.</P> .</P>
...@@ -445,9 +444,8 @@ ...@@ -445,9 +444,8 @@
, ,
. .
, PostgreSQL MySQL , PostgreSQL MySQL
<A href="http://openacs.org/why-not-mysql.html"> <A href="http://openacs.org/philosophy/why-not-mysql.html">
http://openacs.org/philosophy/why-not-mysql.html</A><BR>
http://openacs.org/why-not-mysql.html</A><BR>
<BR> <BR>
</DD> </DD>
...@@ -467,15 +465,15 @@ ...@@ -467,15 +465,15 @@
<DT><B></B></DT> <DT><B></B></DT>
<DD> <DD>
, ,
. , - , . , -
<SMALL></SMALL> , <SMALL></SMALL>
. , , . ,
PostgreSQL ,
<SMALL></SMALL>. PostgreSQL <SMALL></SMALL>.
, ,
. ( <A href="#1.6"> ?</A>.)<BR> . ( <A href="#1.6"> 1.6</A>.)<BR>
<BR> <BR>
</DD> </DD>
...@@ -493,7 +491,7 @@ ...@@ -493,7 +491,7 @@
PostgreSQL?</H4> PostgreSQL?</H4>
<P>PostgreSQL <P>PostgreSQL
6 . 1996 .
(Marc Fournier), (Marc Fournier),
.</P> .</P>
...@@ -505,8 +503,8 @@ ...@@ -505,8 +503,8 @@
, ,
. , . ,
, ,
<A href="https://store.pgsql.com/shopping/index.php?id=1"> <A href="https://store.pgsql.com/shopping/">
https://store.pgsql.com/shopping/index.php?id=1</A> https://store.pgsql.com/shopping/</A>
.</P> .</P>
<P> PostgreSQL, Inc, <P> PostgreSQL, Inc,
...@@ -549,29 +547,23 @@ ...@@ -549,29 +547,23 @@
<P> Web : <P> Web :
<A href="http://www.webreview.com">http://www.webreview.com</A></P> <A href="http://www.webreview.com">http://www.webreview.com</A></P>
<P> <A href=
"http://www.phone.net/home/mwm/hotlist/">http://www.phone.net/home/mwm/hotlist/.</A></P>
<P> Web, PHP. <P> Web, PHP.
<A <A href="http://www.php.net">http://www.php.net</A>.</P>
href="http://www.php.net">http://www.php.net</A>.</P>
<P> , Perl CGI.pm.</P> <P> , Perl CGI.pm mod_perl.</P>
<H4><A name="2.3">2.3</A>) PostgreSQL <H4><A name="2.3">2.3</A>) PostgreSQL
? ? ? ?
?</H4> ?</H4>
<P> , <P> ,
<I>pgaccess</I>, . <I>pgaccess</I> PgAccess, .
. <A href= <A href="http://www.pgaccess.org">http://www.pgaccess.org/</A></P>
"http://www.flex.ro/pgaccess">http://www.flex.ro/pgaccess</A></P>
<P> <I>ecpg</I>, <P> <I>ecpg</I>,
SQL C.</P> SQL C.</P>
<H4><A name="2.4">2.4</A>) <H4><A name="2.4">2.4</A>) PostgreSQL?</H4>
PostgreSQL?</H4>
<P> :</P> <P> :</P>
...@@ -584,7 +576,7 @@ ...@@ -584,7 +576,7 @@
<LI>Java (jdbc)</LI> <LI>Java (jdbc)</LI>
<LI>Perl (perl5)</LI> <LI>Perl (DBD::Pg perl5)</LI>
<LI>ODBC (odbc)</LI> <LI>ODBC (odbc)</LI>
...@@ -594,11 +586,12 @@ ...@@ -594,11 +586,12 @@
<LI>C Easy API (libpgeasy)</LI> <LI>C Easy API (libpgeasy)</LI>
<LI>Embedded <SMALL>HTML</SMALL> (<A href= <LI>PHP ('pg_' functions, Pear::DB)</LI>
"http://www.php.net">PHP from http://www.php.net</A>)</LI>
</UL> </UL>
<P> <A href="http://www.postgresql.org/interfaces.html"> <P>
http://www.postgresql.org/interfaces.html.</A> <A href="http://www.postgresql.org/interfaces.html">http://www.PostgreSQL.org/interfaces.html.</A>
<A href="http://gborg.postgresql.org/">http://gborg.PostgreSQL.org</a>.
</P> </P>
<HR> <HR>
...@@ -671,7 +664,7 @@ ...@@ -671,7 +664,7 @@
<P> <SMALL>INSERT</SMALL>, <P> <SMALL>INSERT</SMALL>,
, ,
<SMALL>COPY</SMALL>. , <SMALL>COPY</SMALL>. ,
<SMALL>INSERT.</SMALL> -, <SMALL>INSERT</SMALL>. -,
<SMALL>BEGIN WORK/COMMIT</SMALL> . <SMALL>BEGIN WORK/COMMIT</SMALL> .
. .
. , . ,
...@@ -740,7 +733,7 @@ ...@@ -740,7 +733,7 @@
<P> <I>postmaster</I> , <I>psql</I> <P> <I>postmaster</I> , <I>psql</I>
, <SMALL>PID</SMALL> <I>postgres</I>, , <SMALL>PID</SMALL> <I>postgres</I>,
<I>psql</I>. <I>psql</I>.
<I>postgres</I> <SMALL>PID.</SMALL> <I>postgres</I> <SMALL>PID</SMALL>.
<I>psql</I>. <I>psql</I>.
<I>postgres</I>, <I>postgres</I>,
PGOPTIONS="-W n", <I>psql</I>. PGOPTIONS="-W n", <I>psql</I>.
...@@ -781,7 +774,7 @@ ...@@ -781,7 +774,7 @@
, <SMALL>SEMMNS</SMALL> <SMALL>SEMMNI;</SMALL> , <SMALL>SEMMNS</SMALL> <SMALL>SEMMNI;</SMALL>
, <SMALL>NPROC;</SMALL> , <SMALL>NPROC;</SMALL>
, <SMALL>MAXUPRC;</SMALL> , <SMALL>MAXUPRC;</SMALL>
, <SMALL>NFILE</SMALL> <SMALL>NINODE.</SMALL> , <SMALL>NFILE</SMALL> <SMALL>NINODE</SMALL>.
backend backend
, .</P> , .</P>
...@@ -789,38 +782,35 @@ ...@@ -789,38 +782,35 @@
64, 64,
MaxBackendId <I>include/storage/sinvaladt.h</I>.</P> MaxBackendId <I>include/storage/sinvaladt.h</I>.</P>
<H4><A name="3.9">3.9</A>) <I>pg_sorttempNNN.NN</I> <H4><A name="3.9">3.9</A>) <I>pgsql_tmp</I>?</H4>
?</H4>
<P> , .
, <SMALL>ORDER BY</SMALL>
,
backend <I>-S</I>,
.</P>
<P> , <P> ,
, backend . . , <small>ORDER BY</small>
backend , , <i>-S</i>
pg_tempNNN.NN.</P> backend',
.</P>
<P> ,
, backend .
.</P>
<A name="3.10">3.10</A>) dump restore <H4><A name="3.10">3.10</A>) dump restore
PostgreSQL?<BR> PostgreSQL?</H4>
<P> PostgreSQL <P> PostgreSQL
. 7.2 7.2.1 . 7.2 7.2.1
dump restore. dump restore.
. (.. , 7.2 7.3)
, .
. dump ,
, . dump
.</P> ,
.</P>
<P> <P> , ,
, ,
<i>pg_upgrade</i> <i>pg_upgrade</i>
dump/restore. dump/restore.
<i>pg_upgrade</i> . <i>pg_upgrade</i> .</P>
</P>
<HR> <HR>
<H2 align="center"> </H2> <H2 align="center"> </H2>
...@@ -857,7 +847,8 @@ ...@@ -857,7 +847,8 @@
<H4><A name="4.4">4.4</A>) ?</H4> <H4><A name="4.4">4.4</A>) ?</H4>
<P> <SMALL>ALTER TABLE DROP COLUMN,</SMALL> <P> 7.3
<small>ALTER TABLE DROP COLUMN</small>. ,
:</P> :</P>
<PRE> <PRE>
BEGIN; BEGIN;
...@@ -981,21 +972,21 @@ ...@@ -981,21 +972,21 @@
SELECT col SELECT col
FROM tab FROM tab
ORDER BY col [ DESC ] ORDER BY col [ DESC ]
LIMIT 1 LIMIT 1;
</pre> </pre>
<P> , <SMALL>LIKE</SMALL> <P> , <SMALL>LIKE</SMALL>
<I>~</I>, : <I>~</I>, :</P>
</P><UL>
<LI> , ..:</LI>
<UL> <UL>
<LI><small>LIKE</small> <i>%.</i><LI> <LI> , ..:
<LI><i>~</i> <i>^.</i><LI> <UL>
</UL> <LI><small>LIKE</small> <i>%.</i>.</LI>
<LI><i>~</i> <i>^</i>.</LI>
</UL></LI>
<LI> , .. [a-e].</LI> <LI> , .. [a-e].</LI>
<LI> <LI> , <small>ILIKE</small>
<small>ILIKE</small> <i>~</i>. <i>~*</i> . ,
, FAQ .</LI> , <A href="#4.12">4.12</A>.</LI>
<LI> <i>initdb</i> <LI> <i>initdb</i>
<i>C</i>. <i>C</i>.
</UL> </UL>
...@@ -1053,13 +1044,13 @@ ...@@ -1053,13 +1044,13 @@
<PRE> <PRE>
SELECT * SELECT *
FROM tab FROM tab
WHERE lower(col) = 'abc' WHERE lower(col) = 'abc';
</PRE> </PRE>
. , . ,
, : , :
<PRE> <PRE>
CREATE INDEX tabindex on tab (lower(col)); CREATE INDEX tabindex ON tab (lower(col));
</PRE> </PRE>
<H4><A name="4.13">4.13</A>) , <H4><A name="4.13">4.13</A>) ,
...@@ -1074,8 +1065,8 @@ ...@@ -1074,8 +1065,8 @@
-------------------------------------------------- --------------------------------------------------
"char" char 1 "char" char 1
CHAR(#) bpchar CHAR(n) bpchar
VARCHAR(#) varchar , VARCHAR(n) varchar ,
TEXT text TEXT text
BYTEA bytea ( null- ) BYTEA bytea ( null- )
</PRE> </PRE>
...@@ -1091,13 +1082,14 @@ BYTEA bytea ...@@ -1091,13 +1082,14 @@ BYTEA bytea
, ,
.</P> .</P>
<P><SMALL>CHAR()</SMALL> - , <P><SMALL>CHAR(n)</SMALL> - ,
. <SMALL>VARCHAR()</SMALL> - . <SMALL>VARCHAR(n)</SMALL> -
, , , ,
. <SMALL>TEXT</SMALL> - . <SMALL>TEXT</SMALL> -
, 1 . , 1 .
<SMALL>BYTEA</SMALL> , <SMALL>BYTEA</SMALL> ,
<SMALL>NULL</SMALL> .</P> <SMALL>NULL</SMALL> .
.</P>
<H4><A name="4.15.1">4.15.1</A>) <H4><A name="4.15.1">4.15.1</A>)
serial/--?</H4> serial/--?</H4>
...@@ -1136,11 +1128,11 @@ BYTEA bytea ...@@ -1136,11 +1128,11 @@ BYTEA bytea
<P> <P>
<SMALL>SERIAL</SMALL> sequence <SMALL>SERIAL</SMALL> sequence
<I>nextval()</I> <I></I> <I>nextval()</I> <I></I>
. - <A href="#4.15.1">4.15.1</A>, . - <A href="#4.15.1">4.15.1</A>,
Perl:</P> :</P>
<PRE> <PRE>
new_id = output of "SELECT nextval('person_id_seq')" new_id = execute("SELECT nextval('person_id_seq')");
INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal'); execute("INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal')");
</PRE> </PRE>
...@@ -1152,11 +1144,11 @@ BYTEA bytea ...@@ -1152,11 +1144,11 @@ BYTEA bytea
<SMALL>SERIAL</SMALL>. <SMALL>SERIAL</SMALL>.
<P> , <P> ,
<SMALL>SERIAL</SMALL> <I>currval</I>() <SMALL>SERIAL</SMALL> <I>currval()</I>
<I></I> , </P> <I></I> , </P>
<PRE> <PRE>
INSERT INTO person (name) VALUES ('Blaise Pascal'); execute("INSERT INTO person (name) VALUES ('Blaise Pascal')");
new_id = output of "SELECT currval('person_id_seq')"; new_id = execute("SELECT currval('person_id_seq')");
</PRE> </PRE>
, ,
...@@ -1171,7 +1163,7 @@ BYTEA bytea ...@@ -1171,7 +1163,7 @@ BYTEA bytea
<I>currval()</I> <I>nextval()</I> <I>currval()</I> <I>nextval()</I>
?</H4> ?</H4>
<P>. Currval() , <P>. <i>currval()</i> ,
backend', .</P> backend', .</P>
<H4><A name="4.15.4">4.15.4</A>) <H4><A name="4.15.4">4.15.4</A>)
...@@ -1191,7 +1183,7 @@ BYTEA bytea ...@@ -1191,7 +1183,7 @@ BYTEA bytea
PostgreSQL. , PostgreSQL PostgreSQL. , PostgreSQL
<SMALL>OID</SMALL>. <SMALL>OID</SMALL> <SMALL>OID</SMALL>. <SMALL>OID</SMALL>
<I>initdb</I> 16384 ( <I>initdb</I> 16384 (
<I>backend/access/transam.h</I>). <I>include/access/transam.h</I>).
<SMALL>OID</SMALL> . , <SMALL>OID</SMALL> . ,
<SMALL>OID</SMALL> - <SMALL>OID</SMALL> -
, PostgreSQL.</P> , PostgreSQL.</P>
...@@ -1215,13 +1207,12 @@ BYTEA bytea ...@@ -1215,13 +1207,12 @@ BYTEA bytea
COPY new TO '/tmp/pgtable'; COPY new TO '/tmp/pgtable';
DELETE FROM new; DELETE FROM new;
COPY new WITH OIDS FROM '/tmp/pgtable'; COPY new WITH OIDS FROM '/tmp/pgtable';
</PRE>
<!-- <!--
CREATE TABLE new_table (mycol int); CREATE TABLE new_table (mycol int);
INSERT INTO new_table (oid, mycol) SELECT oid, mycol FROM old_table; INSERT INTO new_table (oid, mycol) SELECT oid, mycol FROM old_table;
--> -->
</PRE> <P>O<SMALL>ID</SMALL> 4-
<P><SMALL>OID</SMALL> 4-
4 . , , 4 . , ,
, ,
.</P> .</P>
...@@ -1258,8 +1249,7 @@ BYTEA bytea ...@@ -1258,8 +1249,7 @@ BYTEA bytea
<LI>range variable, table name, table alias</LI> <LI>range variable, table name, table alias</LI>
</UL> </UL>
<P> <A href= <P> <A href="http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html">http://hea-www.harvard.edu/MST/simul/software/docs/pkgs/pgsql/glossary/glossary.html</A></P>
"http://www.comptechnews.com/~reaster/dbdesign.html">http://www.comptechnews.com/~reaster/dbdesign.html</A></P>
<H4><A name="4.18">4.18</A>) <I>"ERROR: Memory <H4><A name="4.18">4.18</A>) <I>"ERROR: Memory
exhausted in AllocSetAlloc()"</I>?</H4> exhausted in AllocSetAlloc()"</I>?</H4>
...@@ -1284,7 +1274,7 @@ BYTEA bytea ...@@ -1284,7 +1274,7 @@ BYTEA bytea
<H4><A name="4.19">4.19</A>) , PostgreSQL <H4><A name="4.19">4.19</A>) , PostgreSQL
?</H4> ?</H4>
<P> <I>psql</I>, <CODE>select version();</CODE></P> <P> <I>psql</I>, <CODE>SELECT version();</CODE></P>
<H4><A name="4.20">4.20</A>) <H4><A name="4.20">4.20</A>)
<I>"invalid large obj descriptor"</I>?</H4> <I>"invalid large obj descriptor"</I>?</H4>
...@@ -1324,18 +1314,16 @@ BYTEA bytea ...@@ -1324,18 +1314,16 @@ BYTEA bytea
, <CODE>IN</CODE> , <CODE>IN</CODE>
<CODE>EXISTS</CODE>:</P> <CODE>EXISTS</CODE>:</P>
<PRE> <PRE>
<CODE>SELECT * SELECT *
FROM tab FROM tab
WHERE col IN (SELECT subcol FROM subtab) WHERE col IN (SELECT subcol FROM subtab);
</CODE>
</PRE> </PRE>
: :
<PRE> <PRE>
<CODE>SELECT * SELECT *
FROM tab FROM tab
WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col) WHERE EXISTS (SELECT subcol FROM subtab WHERE subcol = col);
</CODE>
</PRE> </PRE>
, <CODE>subcol</CODE> , <CODE>subcol</CODE>
...@@ -1390,7 +1378,7 @@ BYTEA bytea ...@@ -1390,7 +1378,7 @@ BYTEA bytea
PostgreSQL PostgreSQL
, , .</P> , , .</P>
<P><I>/contrib/dblink</I> , <P><I>contrib/dblink</I> ,
. , . ,
.</P> .</P>
...@@ -1399,8 +1387,8 @@ BYTEA bytea ...@@ -1399,8 +1387,8 @@ BYTEA bytea
<P> PL/pgSQL , <P> PL/pgSQL ,
<i>refcursors</i>. <A <i>refcursors</i>. <A
href="http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html"> href="http://www.postgresql.org/idocs/index.php?plpgsql-cursors.html">
http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html,</a> http://www.PostgreSQL.org/idocs/index.php?plpgsql-cursors.html</a>,
23.7.3.3.</P> 23.7.3.3.</P>
<H4><A name="4.26">4.26</A>) / <H4><A name="4.26">4.26</A>) /
...@@ -1416,10 +1404,26 @@ BYTEA bytea ...@@ -1416,10 +1404,26 @@ BYTEA bytea
<H4><A name="4.27">4.27</A>) ?</H4> <H4><A name="4.27">4.27</A>) ?</H4>
<P> master/slave. <P> master/slave.
, master ,
slave .</P> slave .
: <A href="http://gborg.postgresql.org/genpage?replication_research">
http://gborg.PostgreSQL.org/genpage?replication_research</A>.
master :
<a href="http://gborg.postgresql.org/project/pgreplication/projdisplay.php">http://gborg.PostgreSQL.org/project/pgreplication/projdisplay.php</A>.</P>
<h4><a name="4.28">4.28</a>) ?
</h4>
<ul>
<li><i>contrib/pgcrypto</i>
<small>SQL</small> .</li>
<li> ,
, <i>hostssl</i> <i>pg_hba.conf</i>.</li>
<li> ,
7.3. ,
<i>PASSWORD_ENCRYPTION</i> <i>postgresql.conf</i>.</li>
<li> , .</li>
</ul>
<HR> <HR>
<H2 align="center"> PostgreSQL</H2> <H2 align="center"> PostgreSQL</H2>
...@@ -1439,8 +1443,10 @@ BYTEA bytea ...@@ -1439,8 +1443,10 @@ BYTEA bytea
<H4><A name="5.3">5.3</A>) C , <H4><A name="5.3">5.3</A>) C ,
?</H4> ?</H4>
<P> <P> PostgreSQL, 7.3, ,
, .</P> C, PL/PgSQL SQL.
. ,
C, <i>contrib/tablefunc</i>.</P>
<H4><A name="5.4">5.4</A>) . <H4><A name="5.4">5.4</A>) .
?</H4> ?</H4>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment