summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2006-10-16 17:28:03 +0000
committerBruce Momjian2006-10-16 17:28:03 +0000
commit6270b0e639660ee215dbaaa09b5de27c2e00d14b (patch)
treea2dfb9ea7221b098eec5c8564558b5d9ba86b14e
parent0b4604d56506e7b732ad8150b023ab8bb63ffa9c (diff)
Remove use of '<' and '>' in SGML, use '&' escapes.
Update find_gt_lt to allow grep parameters to be passed into it.
-rw-r--r--doc/src/sgml/ddl.sgml2
-rw-r--r--doc/src/sgml/plpython.sgml2
-rw-r--r--doc/src/sgml/ref/create_opclass.sgml4
-rwxr-xr-xsrc/tools/find_gt_lt4
4 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index 96c727787f..60a788aef5 100644
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -2342,7 +2342,7 @@ VALUES ('New York', NULL, NULL, 'NY');
<programlisting>
CHECK ( x = 1 )
CHECK ( county IN ( 'Oxfordshire', 'Buckinghamshire', 'Warwickshire' ))
-CHECK ( outletID >= 100 AND outletID < 200 )
+CHECK ( outletID &gt;= 100 AND outletID &lt; 200 )
</programlisting>
Ensure that the constraints guarantee that there is no overlap
between the key values permitted in different partitions. A common
diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml
index 45d03f7e86..c9d75e4906 100644
--- a/doc/src/sgml/plpython.sgml
+++ b/doc/src/sgml/plpython.sgml
@@ -123,7 +123,7 @@ CREATE FUNCTION pymax (a integer, b integer)
AS $$
if (a is None) or (b is None):
return None
- if a > b:
+ if a &gt; b:
return a
return b
$$ LANGUAGE plpythonu;
diff --git a/doc/src/sgml/ref/create_opclass.sgml b/doc/src/sgml/ref/create_opclass.sgml
index 92b9187d3c..c62fca3756 100644
--- a/doc/src/sgml/ref/create_opclass.sgml
+++ b/doc/src/sgml/ref/create_opclass.sgml
@@ -238,8 +238,8 @@ CREATE OPERATOR CLASS gist__int_ops
DEFAULT FOR TYPE _int4 USING gist AS
OPERATOR 3 &&,
OPERATOR 6 = RECHECK,
- OPERATOR 7 @>,
- OPERATOR 8 <@,
+ OPERATOR 7 @&gt;,
+ OPERATOR 8 &lt;@,
OPERATOR 20 @@ (_int4, query_int),
FUNCTION 1 g_int_consistent (internal, _int4, int4),
FUNCTION 2 g_int_union (bytea, internal),
diff --git a/src/tools/find_gt_lt b/src/tools/find_gt_lt
index 95e94af876..76c42c91e8 100755
--- a/src/tools/find_gt_lt
+++ b/src/tools/find_gt_lt
@@ -2,5 +2,5 @@
# $PostgreSQL$
-grep '[^]a-z0-9"/!-]>' *.sgml ref/*.sgml
-grep '<[^]a-z0-9"/!-]' *.sgml ref/*.sgml
+grep "$@" '[^]a-z0-9"/!-]>' *.sgml ref/*.sgml
+grep "$@" '<[^]a-z0-9"/!-]' *.sgml ref/*.sgml