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

Commit 1ced129

Browse files
committed
More < and > cleanups converted to ampersands.
1 parent 9e292e3 commit 1ced129

22 files changed

+158
-158
lines changed

doc/src/sgml/backup.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.54 2004/12/28 19:08:58 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.55 2005/01/22 22:56:35 momjian Exp $
33
-->
44
<chapter id="backup">
55
<title>Backup and Restore</title>
@@ -256,7 +256,7 @@ cat <replaceable class="parameter">filename</replaceable>* | psql <replaceable c
256256
following command dumps a database using the custom dump format:
257257

258258
<programlisting>
259-
pg_dump -Fc <replaceable class="parameter">dbname</replaceable> > <replaceable class="parameter">filename</replaceable>
259+
pg_dump -Fc <replaceable class="parameter">dbname</replaceable> &gt; <replaceable class="parameter">filename</replaceable>
260260
</programlisting>
261261

262262
A custom-format dump is not a script for <application>psql</>, but
@@ -1203,14 +1203,14 @@ pg_dumpall -p 5432 | psql -d template1 -p 6543
12031203
version, start the new server, restore the data. For example:
12041204

12051205
<programlisting>
1206-
pg_dumpall > backup
1206+
pg_dumpall &gt; backup
12071207
pg_ctl stop
12081208
mv /usr/local/pgsql /usr/local/pgsql.old
12091209
cd ~/postgresql-&version;
12101210
gmake install
12111211
initdb -D /usr/local/pgsql/data
12121212
postmaster -D /usr/local/pgsql/data
1213-
psql template1 < backup
1213+
psql template1 &lt; backup
12141214
</programlisting>
12151215

12161216
See <xref linkend="runtime"> about ways to start and stop the

doc/src/sgml/datatype.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.154 2005/01/17 18:47:15 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.155 2005/01/22 22:56:35 momjian Exp $
33
-->
44

55
<chapter id="datatype">
@@ -1645,7 +1645,7 @@ SELECT b, char_length(b) FROM test2;
16451645
</row>
16461646
<row>
16471647
<entry><literal>04:05 PM</literal></entry>
1648-
<entry>same as 16:05; input hour must be <= 12</entry>
1648+
<entry>same as 16:05; input hour must be &lt;= 12</entry>
16491649
</row>
16501650
<row>
16511651
<entry><literal>04:05:06.789-8</literal></entry>
@@ -2367,7 +2367,7 @@ SELECT * FROM test1 WHERE a;
23672367
<entry><type>circle</type></entry>
23682368
<entry>24 bytes</entry>
23692369
<entry>Circle</entry>
2370-
<entry><(x,y),r> (center and radius)</entry>
2370+
<entry>&lt;(x,y),r&gt; (center and radius)</entry>
23712371
</row>
23722372
</tbody>
23732373
</tgroup>

doc/src/sgml/ddl.sgml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.38 2005/01/17 01:29:02 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.39 2005/01/22 22:56:35 momjian Exp $ -->
22

33
<chapter id="ddl">
44
<title>Data Definition</title>
@@ -275,7 +275,7 @@ CREATE TABLE products (
275275
CREATE TABLE products (
276276
product_no integer,
277277
name text,
278-
price numeric <emphasis>CHECK (price > 0)</emphasis>
278+
price numeric <emphasis>CHECK (price &gt; 0)</emphasis>
279279
);
280280
</programlisting>
281281
</para>
@@ -303,7 +303,7 @@ CREATE TABLE products (
303303
CREATE TABLE products (
304304
product_no integer,
305305
name text,
306-
price numeric <emphasis>CONSTRAINT positive_price</emphasis> CHECK (price > 0)
306+
price numeric <emphasis>CONSTRAINT positive_price</emphasis> CHECK (price &gt; 0)
307307
);
308308
</programlisting>
309309
So, to specify a named constraint, use the key word
@@ -320,9 +320,9 @@ CREATE TABLE products (
320320
CREATE TABLE products (
321321
product_no integer,
322322
name text,
323-
price numeric CHECK (price > 0),
324-
discounted_price numeric CHECK (discounted_price > 0),
325-
<emphasis>CHECK (price > discounted_price)</emphasis>
323+
price numeric CHECK (price &gt; 0),
324+
discounted_price numeric CHECK (discounted_price &gt; 0),
325+
<emphasis>CHECK (price &gt; discounted_price)</emphasis>
326326
);
327327
</programlisting>
328328
</para>
@@ -350,20 +350,20 @@ CREATE TABLE products (
350350
product_no integer,
351351
name text,
352352
price numeric,
353-
CHECK (price > 0),
353+
CHECK (price &gt; 0),
354354
discounted_price numeric,
355-
CHECK (discounted_price > 0),
356-
CHECK (price > discounted_price)
355+
CHECK (discounted_price &gt; 0),
356+
CHECK (price &gt; discounted_price)
357357
);
358358
</programlisting>
359359
or even
360360
<programlisting>
361361
CREATE TABLE products (
362362
product_no integer,
363363
name text,
364-
price numeric CHECK (price > 0),
364+
price numeric CHECK (price &gt; 0),
365365
discounted_price numeric,
366-
CHECK (discounted_price > 0 AND price > discounted_price)
366+
CHECK (discounted_price &gt; 0 AND price &gt; discounted_price)
367367
);
368368
</programlisting>
369369
It's a matter of taste.
@@ -377,10 +377,10 @@ CREATE TABLE products (
377377
product_no integer,
378378
name text,
379379
price numeric,
380-
CHECK (price > 0),
380+
CHECK (price &gt; 0),
381381
discounted_price numeric,
382-
CHECK (discounted_price > 0),
383-
<emphasis>CONSTRAINT valid_discount</> CHECK (price > discounted_price)
382+
CHECK (discounted_price &gt; 0),
383+
<emphasis>CONSTRAINT valid_discount</> CHECK (price &gt; discounted_price)
384384
);
385385
</programlisting>
386386
</para>
@@ -442,7 +442,7 @@ CREATE TABLE products (
442442
CREATE TABLE products (
443443
product_no integer NOT NULL,
444444
name text NOT NULL,
445-
price numeric NOT NULL CHECK (price > 0)
445+
price numeric NOT NULL CHECK (price &gt; 0)
446446
);
447447
</programlisting>
448448
The order doesn't matter. It does not necessarily determine in which

doc/src/sgml/dfunc.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/dfunc.sgml,v 1.28 2004/11/15 06:32:13 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/dfunc.sgml,v 1.29 2005/01/22 22:56:35 momjian Exp $
33
-->
44

55
<sect2 id="dfunc">
@@ -307,7 +307,7 @@ cc <other flags> -c foo.c
307307
You must then create a symbol \*(lqexports\*(rq file for the object
308308
file:
309309
.nf
310-
mkldexport foo.o `pwd` > foo.exp
310+
mkldexport foo.o `pwd` &gt; foo.exp
311311
.fi
312312
Finally, you can create the shared library:
313313
.nf

doc/src/sgml/dml.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.9 2004/12/23 05:37:39 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.10 2005/01/22 22:56:35 momjian Exp $ -->
22

33
<chapter id="dml">
44
<title>Data Manipulation</title>
@@ -191,7 +191,7 @@ UPDATE products SET price = price * 1.10;
191191
<literal>UPDATE</literal> command by listing more than one
192192
assignment in the <literal>SET</literal> clause. For example:
193193
<programlisting>
194-
UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a > 0;
194+
UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a &gt; 0;
195195
</programlisting>
196196
</para>
197197
</sect1>

doc/src/sgml/ecpg.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.62 2005/01/08 22:13:25 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.63 2005/01/22 22:56:35 momjian Exp $
33
-->
44

55
<chapter id="ecpg">
@@ -627,7 +627,7 @@ EXEC SQL EXECUTE mystmt USING 42, 'foobar';
627627
<literal>INTO</literal> clause:
628628
<programlisting>
629629
EXEC SQL BEGIN DECLARE SECTION;
630-
const char *stmt = "SELECT a, b, c FROM test1 WHERE a > ?";
630+
const char *stmt = "SELECT a, b, c FROM test1 WHERE a &gt; ?";
631631
int v1, v2;
632632
VARCHAR v3;
633633
EXEC SQL END DECLARE SECTION;

doc/src/sgml/func.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.234 2005/01/09 20:08:50 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.235 2005/01/22 22:56:35 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -5890,7 +5890,7 @@ SELECT TIMESTAMP 'now';
58905890
<row>
58915891
<entry> <literal>&gt;^</literal> </entry>
58925892
<entry>Is above?</entry>
5893-
<entry><literal>circle '((0,5),1)' >^ circle '((0,0),1)'</literal></entry>
5893+
<entry><literal>circle '((0,5),1)' &gt;^ circle '((0,0),1)'</literal></entry>
58945894
</row>
58955895
<row>
58965896
<entry> <literal>?#</literal> </entry>

doc/src/sgml/geqo.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.27 2005/01/05 23:42:03 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.28 2005/01/22 22:56:36 momjian Exp $
33
Genetic Optimizer
44
-->
55

@@ -147,7 +147,7 @@ Genetic Optimizer
147147

148148
<literallayout class="monospaced">
149149
+=========================================+
150-
|>>>>>>>>>>> Algorithm GA <<<<<<<<<<<<<<|
150+
|&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Algorithm GA &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;|
151151
+=========================================+
152152
| INITIALIZE t := 0 |
153153
+=========================================+

doc/src/sgml/indices.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.49 2005/01/08 22:13:25 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.50 2005/01/22 22:56:36 momjian Exp $ -->
22

33
<chapter id="indexes">
44
<title id="indexes-title">Indexes</title>
@@ -563,7 +563,7 @@ CREATE TABLE access_log (
563563
such as this:
564564
<programlisting>
565565
CREATE INDEX access_log_client_ip_ix ON access_log (client_ip)
566-
WHERE NOT (client_ip > inet '192.168.100.0' AND client_ip < inet '192.168.100.255');
566+
WHERE NOT (client_ip &gt; inet '192.168.100.0' AND client_ip &lt; inet '192.168.100.255');
567567
</programlisting>
568568
</para>
569569

@@ -617,12 +617,12 @@ CREATE INDEX orders_unbilled_index ON orders (order_nr)
617617
<para>
618618
A possible query to use this index would be
619619
<programlisting>
620-
SELECT * FROM orders WHERE billed is not true AND order_nr < 10000;
620+
SELECT * FROM orders WHERE billed is not true AND order_nr &lt; 10000;
621621
</programlisting>
622622
However, the index can also be used in queries that do not involve
623623
<structfield>order_nr</> at all, e.g.,
624624
<programlisting>
625-
SELECT * FROM orders WHERE billed is not true AND amount > 5000.00;
625+
SELECT * FROM orders WHERE billed is not true AND amount &gt; 5000.00;
626626
</programlisting>
627627
This is not as efficient as a partial index on the
628628
<structfield>amount</> column would be, since the system has to

doc/src/sgml/plpgsql.sgml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.57 2005/01/15 03:38:44 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.58 2005/01/22 22:56:36 momjian Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -1570,7 +1570,7 @@ END IF;
15701570
</programlisting>
15711571

15721572
<programlisting>
1573-
IF v_count > 0 THEN
1573+
IF v_count &gt; 0 THEN
15741574
INSERT INTO users_count (count) VALUES (v_count);
15751575
RETURN 't';
15761576
ELSE
@@ -3233,7 +3233,7 @@ BEGIN
32333233

32343234
SELECT count(*) INTO a_running_job_count FROM cs_jobs WHERE end_stamp IS NULL;
32353235

3236-
IF a_running_job_count > 0 THEN
3236+
IF a_running_job_count &gt; 0 THEN
32373237
COMMIT; -- free lock<co id="co.plpgsql-porting-commit">
32383238
raise_application_error(-20000, 'Unable to create a new job: a job is currently running.');
32393239
END IF;
@@ -3299,7 +3299,7 @@ BEGIN
32993299

33003300
SELECT count(*) INTO a_running_job_count FROM cs_jobs WHERE end_stamp IS NULL;
33013301

3302-
IF a_running_job_count > 0 THEN
3302+
IF a_running_job_count &gt; 0 THEN
33033303
RAISE EXCEPTION 'Unable to create a new job: a job is currently running';<co id="co.plpgsql-porting-raise">
33043304
END IF;
33053305

@@ -3464,7 +3464,7 @@ DECLARE
34643464
length integer;
34653465
ss_length integer;
34663466
BEGIN
3467-
IF beg_index > 0 THEN
3467+
IF beg_index &gt; 0 THEN
34683468
temp_str := substring(string FROM beg_index);
34693469
pos := position(string_to_search IN temp_str);
34703470

@@ -3478,11 +3478,11 @@ BEGIN
34783478
length := char_length(string);
34793479
beg := length + beg_index - ss_length + 2;
34803480

3481-
WHILE beg > 0 LOOP
3481+
WHILE beg &gt; 0 LOOP
34823482
temp_str := substring(string FROM beg FOR ss_length);
34833483
pos := position(string_to_search IN temp_str);
34843484

3485-
IF pos > 0 THEN
3485+
IF pos &gt; 0 THEN
34863486
RETURN beg;
34873487
END IF;
34883488

@@ -3507,7 +3507,7 @@ DECLARE
35073507
length integer;
35083508
ss_length integer;
35093509
BEGIN
3510-
IF beg_index > 0 THEN
3510+
IF beg_index &gt; 0 THEN
35113511
beg := beg_index;
35123512
temp_str := substring(string FROM beg_index);
35133513

@@ -3533,11 +3533,11 @@ BEGIN
35333533
length := char_length(string);
35343534
beg := length + beg_index - ss_length + 2;
35353535

3536-
WHILE beg > 0 LOOP
3536+
WHILE beg &gt; 0 LOOP
35373537
temp_str := substring(string FROM beg FOR ss_length);
35383538
pos := position(string_to_search IN temp_str);
35393539

3540-
IF pos > 0 THEN
3540+
IF pos &gt; 0 THEN
35413541
occur_number := occur_number + 1;
35423542

35433543
IF occur_number = occur_index THEN

doc/src/sgml/pltcl.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.33 2004/12/30 21:45:37 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.34 2005/01/22 22:56:36 momjian Exp $
33
-->
44

55
<chapter id="pltcl">
@@ -102,7 +102,7 @@ $$ LANGUAGE pltcl;
102102

103103
<programlisting>
104104
CREATE FUNCTION tcl_max(integer, integer) RETURNS integer AS $$
105-
if {$1 > $2} {return $1}
105+
if {$1 &gt; $2} {return $1}
106106
return $2
107107
$$ LANGUAGE pltcl STRICT;
108108
</programlisting>
@@ -129,7 +129,7 @@ CREATE FUNCTION tcl_max(integer, integer) RETURNS integer AS $$
129129
return $2
130130
}
131131
if {[argisnull 2]} { return $1 }
132-
if {$1 > $2} {return $1}
132+
if {$1 &gt; $2} {return $1}
133133
return $2
134134
$$ LANGUAGE pltcl;
135135
</programlisting>
@@ -156,10 +156,10 @@ CREATE TABLE employee (
156156
);
157157

158158
CREATE FUNCTION overpaid(employee) RETURNS boolean AS $$
159-
if {200000.0 < $1(salary)} {
159+
if {200000.0 &lt; $1(salary)} {
160160
return "t"
161161
}
162-
if {$1(age) < 30 && 100000.0 < $1(salary)} {
162+
if {$1(age) &lt; 30 && 100000.0 &lt; $1(salary)} {
163163
return "t"
164164
}
165165
return "f"

0 commit comments

Comments
 (0)