]> granicus.if.org Git - postgresql/commitdiff
From: Darren King <darrenk@insightdist.com>
authorMarc G. Fournier <scrappy@hub.org>
Mon, 2 Mar 1998 06:12:15 +0000 (06:12 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 2 Mar 1998 06:12:15 +0000 (06:12 +0000)
Patch1:

Postgres thinks dist_pl (dist of a point to a line) is expecting a box (603)
for the right arg, but it really should be a line (628).

Otherwise the left & right args match those of dist_pb (dist of a point to a
box) two lines further down.

Patch2:

Anyways, these two functions take a path (602) whereas in pg_proc.h they are
listed as taking a lseg (601).

src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h

index 489f0e165f3fceb5f891d2b07214a05086367e08..7259ae71feea486c2daca6df19a690a9270c7c44 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_operator.h,v 1.26 1998/03/01 08:10:34 thomas Exp $
+ * $Id: pg_operator.h,v 1.27 1998/03/02 06:12:10 scrappy Exp $
  *
  * NOTES
  *       the genbki.sh script reads this file and generates .bki
@@ -284,7 +284,7 @@ DATA(insert OID = 610 (  ">"           PGUID 0 b t f  26  26  16 609 611  0  0 int4gt i
 DATA(insert OID = 611 (  "<="     PGUID 0 b t f  26  26  16 612 610  0  0 int4le intltsel intltjoinsel ));
 DATA(insert OID = 612 (  ">="     PGUID 0 b t f  26  26  16 611 609  0  0 int4ge intgtsel intgtjoinsel ));
 
-DATA(insert OID = 613 (  "<->"    PGUID 0 b t f 600 603 701   0   0  0  0 dist_pl - - ));
+DATA(insert OID = 613 (  "<->"    PGUID 0 b t f 600 628 701   0   0  0  0 dist_pl - - ));
 DATA(insert OID = 614 (  "<->"    PGUID 0 b t f 600 601 701   0   0  0  0 dist_ps - - ));
 DATA(insert OID = 615 (  "<->"    PGUID 0 b t f 600 603 701   0   0  0  0 dist_pb - - ));
 DATA(insert OID = 616 (  "<->"    PGUID 0 b t f 601 628 701   0   0  0  0 dist_sl - - ));
index 3606242bcb2f00d37771c20925690dd0f36e6835..ec1cc09a4e1f2e114163751044d40cb804a98a89 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_proc.h,v 1.47 1998/02/26 04:40:59 momjian Exp $
+ * $Id: pg_proc.h,v 1.48 1998/03/02 06:12:15 scrappy Exp $
  *
  * NOTES
  *       The script catalog/genbki.sh reads this file and generates .bki
@@ -1804,9 +1804,9 @@ DATA(insert OID = 1424 (  box_mul                 PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100
 DESCR("multiply box by point (scale)");
 DATA(insert OID = 1425 (  box_div                      PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100  foo bar ));
 DESCR("divide box by point (scale)");
-DATA(insert OID = 1426 (  path_contain_pt      PGUID 11 f t f 2 f      16 "601 600" 100 0 0 100  foo bar ));
+DATA(insert OID = 1426 (  path_contain_pt      PGUID 11 f t f 2 f      16 "602 600" 100 0 0 100  foo bar ));
 DESCR("path contains point?");
-DATA(insert OID = 1427 (  pt_contained_path PGUID 11 f t f 2 f 16 "600 601" 100 0 0 100  foo bar ));
+DATA(insert OID = 1427 (  pt_contained_path PGUID 11 f t f 2 f 16 "600 602" 100 0 0 100  foo bar ));
 DESCR("point contained in path?");
 DATA(insert OID = 1428 (  poly_contain_pt      PGUID 11 f t f 2 f      16 "604 600" 100 0 0 100  foo bar ));
 DESCR("polygon contains point?");