Commit b5ccfc21 authored by Bruce Momjian's avatar Bruce Momjian

Update Russian FAQ.

parent 3d801dbb
PostgreSQL PostgreSQL
: 11 06:36:10 EDT 2002 : 22 19:20:40 EDT 2002
: (Bruce Momjian) : (Bruce Momjian)
(pgman@candle.pha.pa.us) (pgman@candle.pha.pa.us)
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
? ?
3.9) pg_sorttempNNN.NN 3.9) pg_sorttempNNN.NN
? ?
3.10) dump restore
PostgreSQL?
...@@ -267,7 +269,7 @@ ...@@ -267,7 +269,7 @@
1.7) ? 1.7) ?
PostgreSQL - 7.2. PostgreSQL - 7.2.2.
. .
...@@ -414,7 +416,7 @@ ...@@ -414,7 +416,7 @@
, ,
. , . ,
, ,
http://www.pgsql.com/pg_goodies . https://store.pgsql.com/shopping/index.php?id=1 .
PostgreSQL, Inc, "contributions" PostgreSQL, Inc, "contributions"
PostgreSQL PostgreSQL
...@@ -478,6 +480,9 @@ ...@@ -478,6 +480,9 @@
* TCL (libpgtcl) * TCL (libpgtcl)
* C Easy API (libpgeasy) * C Easy API (libpgeasy)
* Embedded HTML (PHP from http://www.php.net) * Embedded HTML (PHP from http://www.php.net)
http://www.postgresql.org/interfaces.html.
_________________________________________________________________ _________________________________________________________________
...@@ -660,6 +665,22 @@ ...@@ -660,6 +665,22 @@
, backend . , backend .
backend , backend ,
pg_tempNNN.NN. pg_tempNNN.NN.
3.10) dump restore
PostgreSQL?
PostgreSQL
. 7.2 7.2.1
dump restore.
. ,
.
dump ,
.
, ,
pg_upgrade
dump/restore.
pg_upgrade .
_________________________________________________________________ _________________________________________________________________
...@@ -707,8 +728,8 @@ ...@@ -707,8 +728,8 @@
? ( 60 G ? ( 60 G
B) B)
? 16 TB ? 16 TB
? 7.1 ? 1.6 TB
? 1 GB 7.1 ? 1 GB
? ?
? 250-1600 ? 250-1600
...@@ -759,6 +780,9 @@ B) ...@@ -759,6 +780,9 @@ B)
, ,
, . , .
NULL
.
4.7) , , , 4.7) , , ,
? ?
...@@ -779,7 +803,7 @@ B) ...@@ -779,7 +803,7 @@ B)
. , . ,
, ,
. .
- -
...@@ -796,13 +820,30 @@ B) ...@@ -796,13 +820,30 @@ B)
, . , ORDER , . , ORDER
BY LIMIT BY LIMIT
, ,
. . MAX() MIN() ,
ORDER BY LIMIT:
SELECT col
FROM tab
ORDER BY col [ DESC ]
LIMIT 1
, LIKE ~, , LIKE ~,
- , :
. , , * ,
, LIKE %, ~ ..:
( ) ^.
* LIKE %.
*
* ~ ^.
*
, .. [a-e].
ILIKE ~. ,
FAQ .
initdb C.
4.9) , ? 4.9) , ?
...@@ -845,8 +886,7 @@ B) ...@@ -845,8 +886,7 @@ B)
~ , ~* ~ , ~*
. .
LIKE ILIKE PostgreSQL LIKE ILIKE.
7.1.
: :
SELECT * SELECT *
...@@ -1014,10 +1054,9 @@ BYTEA bytea ...@@ -1014,10 +1054,9 @@ BYTEA bytea
4.18) "ERROR: Memory exhausted in AllocSetAlloc()"? 4.18) "ERROR: Memory exhausted in AllocSetAlloc()"?
7.1,
. , .
. postmaster :
postmaster :
ulimit -d 262144 ulimit -d 262144
limit datasize 256m limit datasize 256m
...@@ -1075,12 +1114,12 @@ SELECT * ...@@ -1075,12 +1114,12 @@ SELECT *
4.23) ? 4.23) ?
PostgreSQL 7.1 , PostgreSQL ,
SQL. : SQL. :
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col); FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
or
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 USING (col); FROM t1 LEFT OUTER JOIN t2 USING (col);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
alink="#0000ff"> alink="#0000ff">
<H1> PostgreSQL</H1> <H1> PostgreSQL</H1>
<P> : 11 06:36:10 EDT 2002</P> <P> : 22 19:20:40 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>
...@@ -82,6 +82,8 @@ ...@@ -82,6 +82,8 @@
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>pg_sorttempNNN.NN</I>
?<BR> ?<BR>
<A href="#3.10">3.10</A>) dump restore
PostgreSQL?<BR>
<H2 align="center"> </H2> <H2 align="center"> </H2>
...@@ -322,7 +324,7 @@ ...@@ -322,7 +324,7 @@
<H4><A name="1.7">1.7</A>) ?</H4> <H4><A name="1.7">1.7</A>) ?</H4>
<P> PostgreSQL - 7.2.</P> <P> PostgreSQL - 7.2.2.</P>
<P> .</P> <P> .</P>
...@@ -502,8 +504,8 @@ ...@@ -502,8 +504,8 @@
, ,
. , . ,
, ,
<A href= <A href="https://store.pgsql.com/shopping/index.php?id=1">
"http://www.pgsql.com/pg_goodies">http://www.pgsql.com/pg_goodies</A> https://store.pgsql.com/shopping/index.php?id=1</A>
.</P> .</P>
<P> PostgreSQL, Inc, <P> PostgreSQL, Inc,
...@@ -594,6 +596,9 @@ ...@@ -594,6 +596,9 @@
<LI>Embedded <SMALL>HTML</SMALL> (<A href= <LI>Embedded <SMALL>HTML</SMALL> (<A href=
"http://www.php.net">PHP from http://www.php.net</A>)</LI> "http://www.php.net">PHP from http://www.php.net</A>)</LI>
</UL> </UL>
<P> <A href="http://www.postgresql.org/interfaces.html">
http://www.postgresql.org/interfaces.html.</A>
</P>
<HR> <HR>
<H2 align="center"> </H2> <H2 align="center"> </H2>
...@@ -796,6 +801,25 @@ ...@@ -796,6 +801,25 @@
, backend . , backend .
backend , backend ,
pg_tempNNN.NN.</P> pg_tempNNN.NN.</P>
<A name="3.10">3.10</A>) dump restore
PostgreSQL?<BR>
<P> PostgreSQL
. 7.2 7.2.1
dump restore.
.
,
. dump
,
.</P>
<P>
, ,
<i>pg_upgrade</i>
dump/restore.
<i>pg_upgrade</i> .
</P>
<HR> <HR>
<H2 align="center"> </H2> <H2 align="center"> </H2>
...@@ -852,12 +876,13 @@ ...@@ -852,12 +876,13 @@
<PRE> <PRE>
? ( 60 GB) ? ( 60 GB)
? 16 TB ? 16 TB
? 7.1 ? 1.6 TB
? 1 GB 7.1 ? 1 GB
? ?
? 250-1600 ? 250-1600
? ?
</PRE> </PRE>
, "" , ""
/. /.
, ,
...@@ -905,6 +930,10 @@ ...@@ -905,6 +930,10 @@
<P> , <P> ,
, .</P> , .</P>
<P> <small>NULL</small>
.
</P>
<H4><A name="4.7">4.7</A>) , <H4><A name="4.7">4.7</A>) ,
, , ?</H4> , , ?</H4>
...@@ -926,7 +955,7 @@ ...@@ -926,7 +955,7 @@
. , . ,
, ,
.</P> .</P>
<P> - <P> -
...@@ -944,14 +973,32 @@ ...@@ -944,14 +973,32 @@
, . , .
, <SMALL>ORDER BY</SMALL> <SMALL>LIMIT</SMALL> , <SMALL>ORDER BY</SMALL> <SMALL>LIMIT</SMALL>
, ,
.</P> . MAX() MIN()
,
<SMALL>ORDER BY</SMALL> <SMALL>LIMIT</SMALL>:
<pre>
SELECT col
FROM tab
ORDER BY col [ DESC ]
LIMIT 1
</pre>
<P> , <SMALL>LIKE</SMALL> <P> , <SMALL>LIKE</SMALL>
<I>~</I>, <I>~</I>, :
- , . </P><UL>
, , , <LI> , ..:</LI>
<SMALL>LIKE</SMALL> <I>%</I>, <I>~</I> <UL>
( ) <I>^</I>.</P> <LI><small>LIKE</small> <i>%.</i><LI>
<LI><i>~</i> <i>^.</i><LI>
</UL>
<LI> , .. [a-e].</LI>
<LI>
<small>ILIKE</small> <i>~</i>.
, FAQ .</LI>
<LI> <i>initdb</i>
<i>C</i>.
</UL>
<p>
<H4><A name="4.9">4.9</A>) , <H4><A name="4.9">4.9</A>) ,
?</H4> ?</H4>
...@@ -999,20 +1046,19 @@ ...@@ -999,20 +1046,19 @@
<P> <I>~</I> , <P> <I>~</I> ,
<I>~*</I> <I>~*</I>
. <SMALL>LIKE</SMALL> . <SMALL>LIKE</SMALL>
<SMALL>ILIKE</SMALL> PostgreSQL 7.1.</P> <SMALL>ILIKE</SMALL>.</P>
<P> :</P> <P> :</P>
<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>) ,
...@@ -1064,6 +1110,7 @@ BYTEA bytea ...@@ -1064,6 +1110,7 @@ BYTEA bytea
name TEXT name TEXT
); );
</PRE> </PRE>
: :
<PRE> <PRE>
CREATE SEQUENCE person_id_seq; CREATE SEQUENCE person_id_seq;
...@@ -1073,6 +1120,7 @@ BYTEA bytea ...@@ -1073,6 +1120,7 @@ BYTEA bytea
); );
CREATE UNIQUE INDEX person_id_key ON person ( id ); CREATE UNIQUE INDEX person_id_key ON person ( id );
</PRE> </PRE>
<I>create_sequence</I>. <I>create_sequence</I>.
<I>OID</I> . , <I>OID</I> . ,
...@@ -1093,6 +1141,7 @@ BYTEA bytea ...@@ -1093,6 +1141,7 @@ BYTEA bytea
new_id = output of "SELECT nextval('person_id_seq')" new_id = output of "SELECT nextval('person_id_seq')"
INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal'); INSERT INTO person (id, name) VALUES (new_id, 'Blaise Pascal');
</PRE> </PRE>
<CODE>new_id</CODE> ( <CODE>new_id</CODE> (
<CODE>person</CODE>). , <CODE>person</CODE>). ,
...@@ -1108,6 +1157,7 @@ BYTEA bytea ...@@ -1108,6 +1157,7 @@ BYTEA bytea
INSERT INTO person (name) VALUES ('Blaise Pascal'); INSERT INTO person (name) VALUES ('Blaise Pascal');
new_id = output of "SELECT currval('person_id_seq')"; new_id = output of "SELECT currval('person_id_seq')";
</PRE> </PRE>
, ,
<A href="#4.16"><SMALL>OID</SMALL></A>, <A href="#4.16"><SMALL>OID</SMALL></A>,
<SMALL>INSERT</SMALL> , <SMALL>INSERT</SMALL> ,
...@@ -1213,8 +1263,7 @@ BYTEA bytea ...@@ -1213,8 +1263,7 @@ BYTEA bytea
<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>
<P> 7.1, <P>
. ,
. .
<I>postmaster</I> <I>postmaster</I>
:</P> :</P>
...@@ -1222,6 +1271,7 @@ BYTEA bytea ...@@ -1222,6 +1271,7 @@ BYTEA bytea
ulimit -d 262144 ulimit -d 262144
limit datasize 256m limit datasize 256m
</PRE> </PRE>
shell, shell,
, ,
. .
...@@ -1275,6 +1325,7 @@ BYTEA bytea ...@@ -1275,6 +1325,7 @@ BYTEA bytea
WHERE col1 IN (SELECT col2 FROM TAB2) WHERE col1 IN (SELECT col2 FROM TAB2)
</CODE> </CODE>
</PRE> </PRE>
: :
<PRE> <PRE>
<CODE>SELECT * <CODE>SELECT *
...@@ -1282,17 +1333,19 @@ BYTEA bytea ...@@ -1282,17 +1333,19 @@ BYTEA bytea
WHERE EXISTS (SELECT col2 FROM TAB2 WHERE col1 = col2) WHERE EXISTS (SELECT col2 FROM TAB2 WHERE col1 = col2)
</CODE> </CODE>
</PRE> </PRE>
. .
<H4><A name="4.23">4.23</A>) ?</H4> <H4><A name="4.23">4.23</A>) ?</H4>
<P>PostgreSQL 7.1 , <P>PostgreSQL ,
SQL. :</P> SQL. :</P>
<PRE> <PRE>
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col); FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
</PRE> </PRE>
or
<PRE> <PRE>
SELECT * SELECT *
FROM t1 LEFT OUTER JOIN t2 USING (col); FROM t1 LEFT OUTER JOIN t2 USING (col);
......
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