@@ -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<> 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>
227227eqselfor =
228- neqselfor<>
229- intltselfor< or< =
230- intgtselfor> or> =
228+ neqselfor<>
229+ intltselfor< or< =
230+ intgtselfor> or> =
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; '<> ' will typically reject
235+ only a small fraction. '< ' 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+ '< =' will accept a slightly larger fraction than '< ' 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 '> ' and '> ='.
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>
276277eqjoinselfor =
277- neqjoinselfor <>
278- intltjoinselfor < or <=
279- intgtjoinselfor > or >=
280- </ProgramListing>
281- </para>
278+ neqjoinselfor <>
279+ intltjoinselfor < or <=
280+ intgtjoinselfor > or >=
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