Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 654f8f0

Browse files
author
Thomas G. Lockhart
committed
Finish initial markup of cvs.sgml, and include it in the programmer's guide
and the integrated doc. Clean up other markup.
1 parent 85170aa commit 654f8f0

File tree

9 files changed

+1380
-1114
lines changed

9 files changed

+1380
-1114
lines changed

doc/src/sgml/cvs.sgml

+611-922
Large diffs are not rendered by default.

doc/src/sgml/datetime.sgml

+697-137
Large diffs are not rendered by default.

doc/src/sgml/pg_options.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Chapter Id="pg-options">
1+
<Chapter Id="pg-options-dev">
22
<DocInfo>
33
<AuthorGroup>
44
<Author>

doc/src/sgml/postgres.sgml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/postgres.sgml,v 1.22 1999/05/20 05:39:27 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/postgres.sgml,v 1.23 1999/05/22 02:27:24 thomas Exp $
33

44
Postgres integrated documentation.
55
Other subset docs should be copied and shrunk from here.
66
thomas 1998-02-23
77

88
$Log: postgres.sgml,v $
9+
Revision 1.23 1999/05/22 02:27:24 thomas
10+
Finish initial markup of cvs.sgml, and include it in the programmer's guide
11+
and the integrated doc. Clean up other markup.
12+
913
Revision 1.22 1999/05/20 05:39:27 thomas
1014
Rearrange and consolidate the Admin Guide.
1115
Add reference pages for utilities and remove standalone chapters for same.
@@ -90,6 +94,7 @@ Move SQL reference pages up into the User's Guide.
9094
<!entity advanced SYSTEM "advanced.sgml">
9195
<!entity array SYSTEM "array.sgml">
9296
<!entity datatype SYSTEM "datatype.sgml">
97+
<!entity datetime SYSTEM "datetime.sgml">
9398
<!entity environ SYSTEM "environ.sgml">
9499
<!entity func SYSTEM "func.sgml">
95100
<!entity inherit SYSTEM "inherit.sgml">
@@ -351,8 +356,11 @@ Your name here...
351356
Additional related information.
352357
</Para>
353358
</PartIntro>
354-
&docguide;
359+
&datetime;
360+
&docguide;
361+
<!--
355362
&contacts;
363+
-->
356364
&biblio;
357365
</Part>
358366

doc/src/sgml/programmer.sgml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/programmer.sgml,v 1.14 1999/05/20 05:39:27 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/programmer.sgml,v 1.15 1999/05/22 02:27:24 thomas Exp $
33

44
Postgres Programmer's Guide.
55
- thomas 1998-10-27
66

77
$Log: programmer.sgml,v $
8+
Revision 1.15 1999/05/22 02:27:24 thomas
9+
Finish initial markup of cvs.sgml, and include it in the programmer's guide
10+
and the integrated doc. Clean up other markup.
11+
812
Revision 1.14 1999/05/20 05:39:27 thomas
913
Rearrange and consolidate the Admin Guide.
1014
Add reference pages for utilities and remove standalone chapters for same.
@@ -94,6 +98,7 @@ Bigger updates to the installation instructions (install and config).
9498
<!entity bki SYSTEM "bki.sgml">
9599
<!entity compiler SYSTEM "compiler.sgml">
96100
<!entity contacts SYSTEM "contacts.sgml">
101+
<!entity cvs SYSTEM "cvs.sgml">
97102
<!entity docguide SYSTEM "docguide.sgml">
98103
<!entity geqo SYSTEM "geqo.sgml">
99104
<!entity options SYSTEM "pg_options.sgml">
@@ -216,6 +221,7 @@ Disable it until we put in some info.
216221

217222
<!-- appendices -->
218223

224+
&cvs;
219225
&docguide;
220226
<!--
221227
&contacts;

doc/src/sgml/query.sgml

-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ COPY INTO weather FROM '/home/user/weather.txt'
158158
</para>
159159
</sect1>
160160

161-
</Para>
162-
</sect1>
163-
164161
<Sect1>
165162
<Title>Querying a Class</Title>
166163

doc/src/sgml/sql.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ attributes are taken from. We often write a relation scheme as
288288
<parameter>D<subscript>i</subscript></parameter>,
289289
for each attribute
290290
<parameter>A<subscript>i</subscript></parameter>,
291-
1 &lt;&equal; <literal>i</literal> &lt;&equal; <literal>k</literal>,
291+
1 &lt;&equals; <literal>i</literal> &lt;&equals; <literal>k</literal>,
292292
where the values of the attributes are taken from. We often write
293293
a relation scheme as
294294
<literal>R(<parameter>A<subscript>1</subscript></parameter>,
@@ -325,11 +325,11 @@ attributes are taken from. We often write a relation scheme as
325325
integers. We define this by assigning a data type to each
326326
attribute. The type of <classname>SNAME</classname> will be
327327
<type>VARCHAR(20)</type> (this is the <acronym>SQL</acronym> type
328-
for character strings of length &lt;&equal; 20),
328+
for character strings of length &lt;&equals; 20),
329329
the type of <classname>SNO</classname> will be
330330
<type>INTEGER</type>. With the assignment of a data type we also have selected
331331
a domain for an attribute. The domain of <classname>SNAME</classname> is the set of all
332-
character strings of length &lt;&equal; 20,
332+
character strings of length &lt;&equals; 20,
333333
the domain of <classname>SNO</classname> is the set of
334334
all integer numbers.
335335
</para>

doc/src/sgml/user.sgml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/user.sgml,v 1.9 1999/05/20 05:39:29 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/user.sgml,v 1.10 1999/05/22 02:27:25 thomas Exp $
33

44
Postgres User's Manual.
55
Derived from postgres.sgml.
66
thomas 1998-02-24
77

88
$Log: user.sgml,v $
9+
Revision 1.10 1999/05/22 02:27:25 thomas
10+
Finish initial markup of cvs.sgml, and include it in the programmer's guide
11+
and the integrated doc. Clean up other markup.
12+
913
Revision 1.9 1999/05/20 05:39:29 thomas
1014
Rearrange and consolidate the Admin Guide.
1115
Add reference pages for utilities and remove standalone chapters for same.
@@ -49,6 +53,7 @@ Move SQL reference pages up into the User's Guide.
4953
<!entity array SYSTEM "array.sgml">
5054
<!entity biblio SYSTEM "biblio.sgml">
5155
<!entity datatype SYSTEM "datatype.sgml">
56+
<!entity datetime SYSTEM "datetime.sgml">
5257
<!entity environ SYSTEM "environ.sgml">
5358
<!entity func SYSTEM "func.sgml">
5459
<!entity inherit SYSTEM "inherit.sgml">
@@ -149,7 +154,8 @@ Your name here...
149154
&manage;
150155
&storage;
151156
&commands;
152-
157+
158+
&datetime;
153159
<!--
154160
&contacts;
155161
-->

doc/src/sgml/xoper.sgml

+43-43
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ SELECT (a + b) AS c FROM test_complex;
186186
<para>
187187
Providing NEGATOR is very helpful to the query optimizer since
188188
it allows expressions like NOT (x = y) to be simplified into
189-
x <> y. This comes up more often than you might think, because
189+
x &lt;&gt; y. This comes up more often than you might think, because
190190
NOTs can be inserted as a consequence of other rearrangements.
191191
</para>
192192

@@ -225,21 +225,21 @@ SELECT (a + b) AS c FROM test_complex;
225225
These are the standard restriction estimators:
226226
<ProgramListing>
227227
eqsel for =
228-
neqsel for <>
229-
intltsel for < or <=
230-
intgtsel for > or >=
228+
neqsel for &lt;&gt;
229+
intltsel for &lt; or &lt;=
230+
intgtsel for &gt; or &gt;=
231231
</ProgramListing>
232232
It might seem a little odd that these are the categories, but they
233233
make sense if you think about it. '=' will typically accept only
234-
a small fraction of the rows in a table; '<>' will typically reject
235-
only a small fraction. '<' will accept a fraction that depends on
234+
a small fraction of the rows in a table; '&lt;&gt;' will typically reject
235+
only a small fraction. '&lt;' will accept a fraction that depends on
236236
where the given constant falls in the range of values for that table
237237
column (which, it just so happens, is information collected by
238238
VACUUM ANALYZE and made available to the selectivity estimator).
239-
'<=' will accept a slightly larger fraction than '<' for the same
239+
'&lt;=' will accept a slightly larger fraction than '&lt;' for the same
240240
comparison constant, but they're close enough to not be worth
241241
distinguishing, especially since we're not likely to do better than a
242-
rough guess anyhow. Similar remarks apply to '>' and '>='.
242+
rough guess anyhow. Similar remarks apply to '&gt;' and '&gt;='.
243243
</para>
244244

245245
<para>
@@ -249,48 +249,48 @@ SELECT (a + b) AS c FROM test_complex;
249249
matching operators (~, ~*, etc) use eqsel on the assumption that they'll
250250
usually only match a small fraction of the entries in a table.
251251
</para>
252+
</sect2>
252253

253-
<sect2>
254-
<title>JOIN</title>
254+
<sect2>
255+
<title>JOIN</title>
255256

256-
<para>
257-
The JOIN clause, if provided, names a join selectivity
258-
estimation function for the operator (note that this is a function
259-
name, not an operator name). JOIN clauses only make sense for
260-
binary operators that return boolean. The idea behind a join
261-
selectivity estimator is to guess what fraction of the rows in a
262-
pair of tables will satisfy a WHERE-clause condition of the form
263-
<ProgramListing>
257+
<para>
258+
The JOIN clause, if provided, names a join selectivity
259+
estimation function for the operator (note that this is a function
260+
name, not an operator name). JOIN clauses only make sense for
261+
binary operators that return boolean. The idea behind a join
262+
selectivity estimator is to guess what fraction of the rows in a
263+
pair of tables will satisfy a WHERE-clause condition of the form
264+
<ProgramListing>
264265
table1.field1 OP table2.field2
265-
</ProgramListing>
266-
for the current operator. As with the RESTRICT clause, this helps
267-
the optimizer very substantially by letting it figure out which
268-
of several possible join sequences is likely to take the least work.
269-
</para>
266+
</ProgramListing>
267+
for the current operator. As with the RESTRICT clause, this helps
268+
the optimizer very substantially by letting it figure out which
269+
of several possible join sequences is likely to take the least work.
270+
</para>
270271

271-
<para>
272-
As before, this chapter will make no attempt to explain how to write
273-
a join selectivity estimator function, but will just suggest that
274-
you use one of the standard estimators if one is applicable:
275-
<ProgramListing>
272+
<para>
273+
As before, this chapter will make no attempt to explain how to write
274+
a join selectivity estimator function, but will just suggest that
275+
you use one of the standard estimators if one is applicable:
276+
<ProgramListing>
276277
eqjoinsel for =
277-
neqjoinsel for <>
278-
intltjoinsel for < or <=
279-
intgtjoinsel for > or >=
280-
</ProgramListing>
281-
</para>
278+
neqjoinsel for &lt;&gt;
279+
intltjoinsel for &lt; or &lt;=
280+
intgtjoinsel for &gt; or &gt;=
281+
</ProgramListing>
282+
</para>
283+
</sect2>
282284

283-
</sect2>
285+
<sect2>
286+
<title>HASHES</title>
284287

285-
<sect2>
286-
<title>HASHES</title>
287-
288-
<para>
289-
The HASHES clause, if present, tells the system that it is OK to
290-
use the hash join method for a join based on this operator. HASHES
291-
only makes sense for binary operators that return boolean --- and
292-
in practice, the operator had better be equality for some data type.
293-
</para>
288+
<para>
289+
The HASHES clause, if present, tells the system that it is OK to
290+
use the hash join method for a join based on this operator. HASHES
291+
only makes sense for binary operators that return boolean --- and
292+
in practice, the operator had better be equality for some data type.
293+
</para>
294294

295295
<para>
296296
The assumption underlying hash join is that the join operator can

0 commit comments

Comments
 (0)