@@ -83,6 +83,13 @@ typedef FormData_pg_operator *Form_pg_operator;
83
83
* ----------------
84
84
*/
85
85
86
+ /*
87
+ * Note: every entry in pg_operator.h is expected to have a DESCR() comment.
88
+ * If the operator is a deprecated equivalent of some other entry, be sure
89
+ * to comment it as such so that initdb doesn't think it's a preferred name
90
+ * for the underlying function.
91
+ */
92
+
86
93
DATA (insert OID = 15 ( "=" PGNSP PGUID b t t 23 20 16 416 36 int48eq eqsel eqjoinsel ));
87
94
DESCR ("equal" );
88
95
DATA (insert OID = 36 ( "<>" PGNSP PGUID b f f 23 20 16 417 15 int48ne neqsel neqjoinsel ));
@@ -141,7 +148,7 @@ DESCR("equal");
141
148
DATA (insert OID = 388 ( "!" PGNSP PGUID r f f 20 0 1700 0 0 numeric_fac - - ));
142
149
DESCR ("factorial" );
143
150
DATA (insert OID = 389 ( "!!" PGNSP PGUID l f f 0 20 1700 0 0 numeric_fac - - ));
144
- DESCR ("factorial " );
151
+ DESCR ("deprecated, use ! instead " );
145
152
DATA (insert OID = 385 ( "=" PGNSP PGUID b f t 29 29 16 385 0 cideq eqsel eqjoinsel ));
146
153
DESCR ("equal" );
147
154
DATA (insert OID = 386 ( "=" PGNSP PGUID b f t 22 22 16 386 0 int2vectoreq eqsel eqjoinsel ));
@@ -641,7 +648,7 @@ DESCR("is above (allows touching)");
641
648
DATA (insert OID = 801 ( "<^" PGNSP PGUID b f f 603 603 16 0 0 box_below_eq positionsel positionjoinsel ));
642
649
DESCR ("is below (allows touching)" );
643
650
DATA (insert OID = 802 ( "?#" PGNSP PGUID b f f 603 603 16 0 0 box_overlap areasel areajoinsel ));
644
- DESCR ("overlaps " );
651
+ DESCR ("deprecated, use && instead " );
645
652
DATA (insert OID = 803 ( "#" PGNSP PGUID b f f 603 603 603 0 0 box_intersect - - ));
646
653
DESCR ("box intersection" );
647
654
DATA (insert OID = 804 ( "+" PGNSP PGUID b f f 603 600 603 0 0 box_add - - ));
@@ -1521,41 +1528,41 @@ DESCR("concatenate");
1521
1528
1522
1529
/* obsolete names for contains/contained-by operators; remove these someday */
1523
1530
DATA (insert OID = 2860 ( "@" PGNSP PGUID b f f 604 604 16 2861 0 poly_contained contsel contjoinsel ));
1524
- DESCR ("is contained by " );
1531
+ DESCR ("deprecated, use <@ instead " );
1525
1532
DATA (insert OID = 2861 ( "~" PGNSP PGUID b f f 604 604 16 2860 0 poly_contain contsel contjoinsel ));
1526
- DESCR ("contains " );
1533
+ DESCR ("deprecated, use @> instead " );
1527
1534
DATA (insert OID = 2862 ( "@" PGNSP PGUID b f f 603 603 16 2863 0 box_contained contsel contjoinsel ));
1528
- DESCR ("is contained by " );
1535
+ DESCR ("deprecated, use <@ instead " );
1529
1536
DATA (insert OID = 2863 ( "~" PGNSP PGUID b f f 603 603 16 2862 0 box_contain contsel contjoinsel ));
1530
- DESCR ("contains " );
1537
+ DESCR ("deprecated, use @> instead " );
1531
1538
DATA (insert OID = 2864 ( "@" PGNSP PGUID b f f 718 718 16 2865 0 circle_contained contsel contjoinsel ));
1532
- DESCR ("is contained by " );
1539
+ DESCR ("deprecated, use <@ instead " );
1533
1540
DATA (insert OID = 2865 ( "~" PGNSP PGUID b f f 718 718 16 2864 0 circle_contain contsel contjoinsel ));
1534
- DESCR ("contains " );
1541
+ DESCR ("deprecated, use @> instead " );
1535
1542
DATA (insert OID = 2866 ( "@" PGNSP PGUID b f f 600 603 16 0 0 on_pb - - ));
1536
- DESCR ("point inside box " );
1543
+ DESCR ("deprecated, use <@ instead " );
1537
1544
DATA (insert OID = 2867 ( "@" PGNSP PGUID b f f 600 602 16 2868 0 on_ppath - - ));
1538
- DESCR ("point within closed path, or point on open path " );
1545
+ DESCR ("deprecated, use <@ instead " );
1539
1546
DATA (insert OID = 2868 ( "~" PGNSP PGUID b f f 602 600 16 2867 0 path_contain_pt - - ));
1540
- DESCR ("contains " );
1547
+ DESCR ("deprecated, use @> instead " );
1541
1548
DATA (insert OID = 2869 ( "@" PGNSP PGUID b f f 600 604 16 2870 0 pt_contained_poly - - ));
1542
- DESCR ("is contained by " );
1549
+ DESCR ("deprecated, use <@ instead " );
1543
1550
DATA (insert OID = 2870 ( "~" PGNSP PGUID b f f 604 600 16 2869 0 poly_contain_pt - - ));
1544
- DESCR ("contains " );
1551
+ DESCR ("deprecated, use @> instead " );
1545
1552
DATA (insert OID = 2871 ( "@" PGNSP PGUID b f f 600 718 16 2872 0 pt_contained_circle - - ));
1546
- DESCR ("is contained by " );
1553
+ DESCR ("deprecated, use <@ instead " );
1547
1554
DATA (insert OID = 2872 ( "~" PGNSP PGUID b f f 718 600 16 2871 0 circle_contain_pt - - ));
1548
- DESCR ("contains " );
1555
+ DESCR ("deprecated, use @> instead " );
1549
1556
DATA (insert OID = 2873 ( "@" PGNSP PGUID b f f 600 628 16 0 0 on_pl - - ));
1550
- DESCR ("point on line " );
1557
+ DESCR ("deprecated, use <@ instead " );
1551
1558
DATA (insert OID = 2874 ( "@" PGNSP PGUID b f f 600 601 16 0 0 on_ps - - ));
1552
- DESCR ("is contained by " );
1559
+ DESCR ("deprecated, use <@ instead " );
1553
1560
DATA (insert OID = 2875 ( "@" PGNSP PGUID b f f 601 628 16 0 0 on_sl - - ));
1554
- DESCR ("lseg on line " );
1561
+ DESCR ("deprecated, use <@ instead " );
1555
1562
DATA (insert OID = 2876 ( "@" PGNSP PGUID b f f 601 603 16 0 0 on_sb - - ));
1556
- DESCR ("is contained by " );
1563
+ DESCR ("deprecated, use <@ instead " );
1557
1564
DATA (insert OID = 2877 ( "~" PGNSP PGUID b f f 1034 1033 16 0 0 aclcontains - - ));
1558
- DESCR ("contains " );
1565
+ DESCR ("deprecated, use @> instead " );
1559
1566
1560
1567
/* uuid operators */
1561
1568
DATA (insert OID = 2972 ( "=" PGNSP PGUID b t t 2950 2950 16 2972 2973 uuid_eq eqsel eqjoinsel ));
@@ -1607,9 +1614,9 @@ DESCR("text search match");
1607
1614
DATA (insert OID = 3637 ( "@@" PGNSP PGUID b f f 3615 3614 16 3636 0 ts_match_qv tsmatchsel tsmatchjoinsel ));
1608
1615
DESCR ("text search match" );
1609
1616
DATA (insert OID = 3660 ( "@@@" PGNSP PGUID b f f 3614 3615 16 3661 0 ts_match_vq tsmatchsel tsmatchjoinsel ));
1610
- DESCR ("text search match " );
1617
+ DESCR ("deprecated, use @@ instead " );
1611
1618
DATA (insert OID = 3661 ( "@@@" PGNSP PGUID b f f 3615 3614 16 3660 0 ts_match_qv tsmatchsel tsmatchjoinsel ));
1612
- DESCR ("text search match " );
1619
+ DESCR ("deprecated, use @@ instead " );
1613
1620
DATA (insert OID = 3674 ( "<" PGNSP PGUID b f f 3615 3615 16 3679 3678 tsquery_lt scalarltsel scalarltjoinsel ));
1614
1621
DESCR ("less than" );
1615
1622
DATA (insert OID = 3675 ( "<=" PGNSP PGUID b f f 3615 3615 16 3678 3679 tsquery_le scalarltsel scalarltjoinsel ));
0 commit comments