summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2006-10-16 17:28:03 +0000
committerBruce Momjian2006-10-16 17:28:03 +0000
commit389fad1e6bfcf6c6bf3f3f397aea637af029bb4a (patch)
tree4ffb089de82ba39939d74a64eb5b14c43c3d4903
parent6ab23dabf50de05767563c4b81aeed7949c4fdec (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.sgml4
-rw-r--r--doc/src/sgml/plpython.sgml4
-rw-r--r--doc/src/sgml/ref/create_opclass.sgml6
-rwxr-xr-xsrc/tools/find_gt_lt6
4 files changed, 10 insertions, 10 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index a71705a37c5..f9744389883 100644
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.64 2006/10/13 21:43:17 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.65 2006/10/16 17:28:03 momjian Exp $ -->
<chapter id="ddl">
<title>Data Definition</title>
@@ -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 135ef85d5bc..4a118ebd67f 100644
--- a/doc/src/sgml/plpython.sgml
+++ b/doc/src/sgml/plpython.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.33 2006/09/03 22:23:58 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.34 2006/10/16 17:28:03 momjian Exp $ -->
<chapter id="plpython">
<title>PL/Python - Python Procedural Language</title>
@@ -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 c9fc8d89b1e..524be85f978 100644
--- a/doc/src/sgml/ref/create_opclass.sgml
+++ b/doc/src/sgml/ref/create_opclass.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/create_opclass.sgml,v 1.17 2006/09/16 00:30:17 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/create_opclass.sgml,v 1.18 2006/10/16 17:28:03 momjian Exp $
PostgreSQL documentation
-->
@@ -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 3dca3a6bfdc..72bcad47eaf 100755
--- a/src/tools/find_gt_lt
+++ b/src/tools/find_gt_lt
@@ -1,6 +1,6 @@
#!/bin/sh
-# $PostgreSQL: pgsql/src/tools/find_gt_lt,v 1.2 2006/03/11 04:38:41 momjian Exp $
+# $PostgreSQL: pgsql/src/tools/find_gt_lt,v 1.3 2006/10/16 17:28:03 momjian Exp $
-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