6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: pg_proc.h,v 1.38 1997/11/24 13:43:29 momjian Exp $
9
+ * $Id: pg_proc.h,v 1.39 1997/11/30 22:52:24 thomas Exp $
10
10
*
11
11
* NOTES
12
12
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1517,26 +1517,26 @@ DESCR("addition");
1517
1517
DATA (insert OID = 1170 ( timespan_mi PGUID 11 f t f 2 f 1186 "1186 1186" 100 0 0 100 foo bar ));
1518
1518
DESCR ("subtract" );
1519
1519
DATA (insert OID = 1171 ( datetime_part PGUID 11 f t f 2 f 701 "25 1184" 100 0 0 100 foo bar ));
1520
- DESCR ("get part of datetime field " );
1520
+ DESCR ("extract field from datetime" );
1521
1521
DATA (insert OID = 1172 ( timespan_part PGUID 11 f t f 2 f 701 "25 1186" 100 0 0 100 foo bar ));
1522
- DESCR ("get part of timespan field " );
1522
+ DESCR ("extract field from timespan" );
1523
1523
1524
1524
DATA (insert OID = 1173 ( abstime_datetime PGUID 11 f t f 1 f 1184 "702" 100 0 0 100 foo bar ));
1525
- DESCR ("convert" );
1525
+ DESCR ("convert abstime to datetime " );
1526
1526
DATA (insert OID = 1174 ( date_datetime PGUID 11 f t f 1 f 1184 "1082" 100 0 0 100 foo bar ));
1527
- DESCR ("convert" );
1527
+ DESCR ("convert date to datetime " );
1528
1528
DATA (insert OID = 1175 ( stamp_datetime PGUID 11 f t f 1 f 1184 "1296" 100 0 0 100 foo bar ));
1529
- DESCR ("convert" );
1529
+ DESCR ("convert timestamp to datetime " );
1530
1530
DATA (insert OID = 1176 ( datet_datetime PGUID 11 f t f 2 f 1184 "1082 1083" 100 0 0 100 foo bar ));
1531
- DESCR ("convert" );
1531
+ DESCR ("convert date and time to datetime " );
1532
1532
DATA (insert OID = 1177 ( reltime_timespan PGUID 11 f t f 1 f 1186 "703" 100 0 0 100 foo bar ));
1533
- DESCR ("convert" );
1533
+ DESCR ("convert reltime to timespan " );
1534
1534
DATA (insert OID = 1178 ( datetime_date PGUID 11 f t f 1 f 1082 "1184" 100 0 0 100 foo bar ));
1535
- DESCR ("convert" );
1535
+ DESCR ("convert datetime to date " );
1536
1536
DATA (insert OID = 1179 ( abstime_date PGUID 11 f t f 1 f 1082 "702" 100 0 0 100 foo bar ));
1537
- DESCR ("convert" );
1537
+ DESCR ("convert abstime to date " );
1538
1538
DATA (insert OID = 1180 ( datetime_abstime PGUID 11 f t f 1 f 702 "1184" 100 0 0 100 foo bar ));
1539
- DESCR ("convert" );
1539
+ DESCR ("convert datetime to abstime " );
1540
1540
1541
1541
DATA (insert OID = 1188 ( datetime_mi PGUID 11 f t f 2 f 1186 "1184 1184" 100 0 0 100 foo bar ));
1542
1542
DESCR ("subtract" );
@@ -1573,18 +1573,6 @@ DESCR("truncate datetime to specified units");
1573
1573
DATA (insert OID = 1218 ( timespan_trunc PGUID 11 f t f 2 f 1186 "25 1186" 100 0 0 100 foo bar ));
1574
1574
DESCR ("truncate timespan to specified units" );
1575
1575
1576
- DATA (insert OID = 1290 ( char2icregexeq PGUID 11 f t f 2 f 16 "409 25" 100 0 0 100 foo bar ));
1577
- DESCR ("matches regex., case-insensitive" );
1578
- DATA (insert OID = 1291 ( char2icregexne PGUID 11 f t f 2 f 16 "409 25" 100 0 0 100 foo bar ));
1579
- DESCR ("does not match regex., case-insensitive" );
1580
- DATA (insert OID = 1292 ( char4icregexeq PGUID 11 f t f 2 f 16 "410 25" 100 0 0 100 foo bar ));
1581
- DESCR ("matches regex., case-insensitive" );
1582
- DATA (insert OID = 1293 ( char4icregexne PGUID 11 f t f 2 f 16 "410 25" 100 0 0 100 foo bar ));
1583
- DESCR ("does not match regex., case-insensitive" );
1584
- DATA (insert OID = 1294 ( char8icregexeq PGUID 11 f t f 2 f 16 "411 25" 100 0 0 100 foo bar ));
1585
- DESCR ("matches regex., case-insensitive" );
1586
- DATA (insert OID = 1295 ( char8icregexne PGUID 11 f t f 2 f 16 "411 25" 100 0 0 100 foo bar ));
1587
- DESCR ("does not match regex., case-insensitive" );
1588
1576
DATA (insert OID = 1236 ( char16icregexeq PGUID 11 f t f 2 f 16 "20 25" 100 0 0 100 foo bar ));
1589
1577
DESCR ("matches regex., case-insensitive" );
1590
1578
DATA (insert OID = 1237 ( char16icregexne PGUID 11 f t f 2 f 16 "20 25" 100 0 0 100 foo bar ));
@@ -1598,12 +1586,25 @@ DESCR("matches regex., case-insensitive");
1598
1586
DATA (insert OID = 1241 ( nameicregexne PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar ));
1599
1587
DESCR ("does not match regex., case-insensitive" );
1600
1588
1589
+ DATA (insert OID = 1290 ( char2icregexeq PGUID 11 f t f 2 f 16 "409 25" 100 0 0 100 foo bar ));
1590
+ DESCR ("matches regex., case-insensitive" );
1591
+ DATA (insert OID = 1291 ( char2icregexne PGUID 11 f t f 2 f 16 "409 25" 100 0 0 100 foo bar ));
1592
+ DESCR ("does not match regex., case-insensitive" );
1593
+ DATA (insert OID = 1292 ( char4icregexeq PGUID 11 f t f 2 f 16 "410 25" 100 0 0 100 foo bar ));
1594
+ DESCR ("matches regex., case-insensitive" );
1595
+ DATA (insert OID = 1293 ( char4icregexne PGUID 11 f t f 2 f 16 "410 25" 100 0 0 100 foo bar ));
1596
+ DESCR ("does not match regex., case-insensitive" );
1597
+ DATA (insert OID = 1294 ( char8icregexeq PGUID 11 f t f 2 f 16 "411 25" 100 0 0 100 foo bar ));
1598
+ DESCR ("matches regex., case-insensitive" );
1599
+ DATA (insert OID = 1295 ( char8icregexne PGUID 11 f t f 2 f 16 "411 25" 100 0 0 100 foo bar ));
1600
+ DESCR ("does not match regex., case-insensitive" );
1601
+
1601
1602
DATA (insert OID = 1297 ( timestamp_in PGUID 11 f t f 1 f 1296 "0" 100 0 0 100 foo bar ));
1602
1603
DESCR ("(internal)" );
1603
1604
DATA (insert OID = 1298 ( timestamp_out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 foo bar ));
1604
1605
DESCR ("(internal)" );
1605
1606
DATA (insert OID = 1299 ( now PGUID 11 f t f 0 f 1296 "0" 100 0 0 100 foo bar ));
1606
- DESCR ("(internal) " );
1607
+ DESCR ("current transaction time " );
1607
1608
1608
1609
/* OIDS 1300 - 1399 */
1609
1610
@@ -1697,25 +1698,25 @@ DATA(insert OID = 1370 ( timestamp PGUID 14 f t f 1 f 1296 "1184" 100 0 0 10
1697
1698
DESCR ("convert" );
1698
1699
1699
1700
DATA (insert OID = 1380 ( date_part PGUID 14 f t f 2 f 701 "25 1184" 100 0 0 100 "select datetime_part($1, $2)" - ));
1700
- DESCR ("get part of date " );
1701
+ DESCR ("extract field from datetime " );
1701
1702
DATA (insert OID = 1381 ( date_part PGUID 14 f t f 2 f 701 "25 1186" 100 0 0 100 "select timespan_part($1, $2)" - ));
1702
- DESCR ("get part of date " );
1703
+ DESCR ("extract field from timespan " );
1703
1704
DATA (insert OID = 1382 ( date_part PGUID 14 f t f 2 f 701 "25 702" 100 0 0 100 "select datetime_part($1, datetime($2))" - ));
1704
- DESCR ("get part of date " );
1705
+ DESCR ("extract field from abstime " );
1705
1706
DATA (insert OID = 1383 ( date_part PGUID 14 f t f 2 f 701 "25 703" 100 0 0 100 "select timespan_part($1, timespan($2))" - ));
1706
- DESCR ("get part of date " );
1707
+ DESCR ("extract field from reltime " );
1707
1708
DATA (insert OID = 1384 ( date_part PGUID 14 f t f 2 f 701 "25 1082" 100 0 0 100 "select datetime_part($1, datetime($2))" - ));
1708
- DESCR ("get part of date" );
1709
+ DESCR ("extract field from date" );
1709
1710
DATA (insert OID = 1385 ( date_part PGUID 14 f t f 2 f 701 "25 1083" 100 0 0 100 "select timespan_part($1, timespan($2))" - ));
1710
- DESCR ("get part of date " );
1711
+ DESCR ("extract field from time " );
1711
1712
DATA (insert OID = 1386 ( date_trunc PGUID 14 f t f 2 f 1184 "25 1184" 100 0 0 100 "select datetime_trunc($1, $2)" - ));
1712
- DESCR ("truncate date " );
1713
+ DESCR ("truncate datetime to field " );
1713
1714
DATA (insert OID = 1387 ( date_trunc PGUID 14 f t f 2 f 1186 "25 1186" 100 0 0 100 "select timespan_trunc($1, $2)" - ));
1714
- DESCR ("truncate date " );
1715
+ DESCR ("truncate timespan to field " );
1715
1716
DATA (insert OID = 1388 ( age PGUID 14 f t f 2 f 1186 "1184 1184" 100 0 0 100 "select datetime_age($1, $2)" - ));
1716
- DESCR ("get difference" );
1717
+ DESCR ("difference between datetimes but leave years and months unresolved " );
1717
1718
DATA (insert OID = 1389 ( age PGUID 14 f t f 1 f 1186 "1184" 100 0 0 100 "select datetime_age(\'today\', $1)" - ));
1718
- DESCR ("get difference" );
1719
+ DESCR ("difference between datetime and today but leave years and months unresolved " );
1719
1720
1720
1721
DATA (insert OID = 1390 ( isfinite PGUID 14 f t f 1 f 16 "1184" 100 0 0 100 "select datetime_finite($1)" - ));
1721
1722
DESCR ("" );
@@ -1728,65 +1729,65 @@ DESCR("");
1728
1729
/* OIDS 1400 - 1499 */
1729
1730
1730
1731
DATA (insert OID = 1400 ( float PGUID 14 f t f 1 f 701 "701" 100 0 0 100 "select $1" - ));
1731
- DESCR ("convert" );
1732
+ DESCR ("convert float8 to float8 (no-op) " );
1732
1733
DATA (insert OID = 1401 ( float PGUID 14 f t f 1 f 701 "700" 100 0 0 100 "select ftod($1)" - ));
1733
- DESCR ("convert" );
1734
+ DESCR ("convert float4 to float8 " );
1734
1735
DATA (insert OID = 1402 ( float4 PGUID 14 f t f 1 f 700 "700" 100 0 0 100 "select $1" - ));
1735
- DESCR ("convert" );
1736
+ DESCR ("convert float4 to float4 (no-op) " );
1736
1737
DATA (insert OID = 1403 ( float4 PGUID 14 f t f 1 f 700 "701" 100 0 0 100 "select dtof($1)" - ));
1737
- DESCR ("convert" );
1738
+ DESCR ("convert float8 to float4 " );
1738
1739
DATA (insert OID = 1404 ( int PGUID 14 f t f 1 f 23 "23" 100 0 0 100 "select $1" - ));
1739
- DESCR ("convert" );
1740
+ DESCR ("convert int4 to int4 (no-op) " );
1740
1741
DATA (insert OID = 1405 ( int2 PGUID 14 f t f 1 f 21 "21" 100 0 0 100 "select $1" - ));
1741
- DESCR ("convert" );
1742
+ DESCR ("convert int2 to int2 (no-op) " );
1742
1743
1743
1744
DATA (insert OID = 1406 ( float8 PGUID 14 f t f 1 f 701 "701" 100 0 0 100 "select $1" - ));
1744
- DESCR ("convert" );
1745
+ DESCR ("convert float8 to float8 (no-op) " );
1745
1746
DATA (insert OID = 1407 ( float8 PGUID 14 f t f 1 f 701 "700" 100 0 0 100 "select ftod($1)" - ));
1746
- DESCR ("convert" );
1747
+ DESCR ("convert float4 to float8 " );
1747
1748
DATA (insert OID = 1408 ( float8 PGUID 14 f t f 1 f 701 "23" 100 0 0 100 "select i4tod($1)" - ));
1748
- DESCR ("convert" );
1749
+ DESCR ("convert int4 to float8 " );
1749
1750
DATA (insert OID = 1409 ( float8 PGUID 14 f t f 1 f 701 "21" 100 0 0 100 "select i2tod($1)" - ));
1750
- DESCR ("convert" );
1751
+ DESCR ("convert int2 to float8 " );
1751
1752
DATA (insert OID = 1410 ( float4 PGUID 14 f t f 1 f 700 "23" 100 0 0 100 "select i4tof($1)" - ));
1752
- DESCR ("convert" );
1753
+ DESCR ("convert int4 to float4 " );
1753
1754
DATA (insert OID = 1411 ( float4 PGUID 14 f t f 1 f 700 "21" 100 0 0 100 "select i2tof($1)" - ));
1754
- DESCR ("convert" );
1755
+ DESCR ("convert int2 to float4 " );
1755
1756
DATA (insert OID = 1412 ( int4 PGUID 14 f t f 1 f 23 "23" 100 0 0 100 "select $1" - ));
1756
- DESCR ("convert" );
1757
+ DESCR ("convert int4 to int4 (no-op) " );
1757
1758
DATA (insert OID = 1413 ( int4 PGUID 14 f t f 1 f 23 "701" 100 0 0 100 "select dtoi4($1)" - ));
1758
- DESCR ("convert" );
1759
+ DESCR ("convert float8 to int4 " );
1759
1760
DATA (insert OID = 1414 ( int4 PGUID 14 f t f 1 f 23 "21" 100 0 0 100 "select i2toi4($1)" - ));
1760
- DESCR ("convert" );
1761
+ DESCR ("convert int2 to int4 " );
1761
1762
DATA (insert OID = 1415 ( int4 PGUID 14 f t f 1 f 23 "700" 100 0 0 100 "select ftoi4($1)" - ));
1762
- DESCR ("convert" );
1763
+ DESCR ("convert float4 to int4 " );
1763
1764
DATA (insert OID = 1416 ( int2 PGUID 14 f t f 1 f 21 "21" 100 0 0 100 "select $1" - ));
1764
- DESCR ("convert" );
1765
+ DESCR ("convert int2 to int2 (no-op) " );
1765
1766
DATA (insert OID = 1417 ( int2 PGUID 14 f t f 1 f 21 "23" 100 0 0 100 "select i4toi2($1)" - ));
1766
- DESCR ("convert" );
1767
+ DESCR ("convert int4 to int2 " );
1767
1768
DATA (insert OID = 1418 ( int2 PGUID 14 f t f 1 f 21 "701" 100 0 0 100 "select dtoi2($1)" - ));
1768
- DESCR ("convert" );
1769
+ DESCR ("convert float8 to int2 " );
1769
1770
DATA (insert OID = 1419 ( int2 PGUID 14 f t f 1 f 21 "700" 100 0 0 100 "select ftoi2($1)" - ));
1770
- DESCR ("convert" );
1771
+ DESCR ("convert float4 to int2 " );
1771
1772
1772
1773
DATA (insert OID = 1421 ( box PGUID 11 f t f 2 f 603 "600 600" 100 0 0 100 foo bar ));
1773
- DESCR ("convert" );
1774
+ DESCR ("convert points to box " );
1774
1775
DATA (insert OID = 1422 ( box_add PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100 foo bar ));
1775
- DESCR ("addition " );
1776
+ DESCR ("add point to box (translate) " );
1776
1777
DATA (insert OID = 1423 ( box_sub PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100 foo bar ));
1777
- DESCR ("subtract" );
1778
+ DESCR ("subtract point from box (translate) " );
1778
1779
DATA (insert OID = 1424 ( box_mul PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100 foo bar ));
1779
- DESCR ("multiply" );
1780
+ DESCR ("multiply box by point (scale) " );
1780
1781
DATA (insert OID = 1425 ( box_div PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100 foo bar ));
1781
- DESCR ("divide" );
1782
+ DESCR ("divide box by point (scale) " );
1782
1783
DATA (insert OID = 1426 ( path_contain_pt PGUID 11 f t f 2 f 16 "601 600" 100 0 0 100 foo bar ));
1783
- DESCR ("contains" );
1784
+ DESCR ("path contains point? " );
1784
1785
DATA (insert OID = 1427 ( pt_contained_path PGUID 11 f t f 2 f 16 "600 601" 100 0 0 100 foo bar ));
1785
- DESCR ("" );
1786
+ DESCR ("point contained in path? " );
1786
1787
DATA (insert OID = 1428 ( poly_contain_pt PGUID 11 f t f 2 f 16 "604 600" 100 0 0 100 foo bar ));
1787
- DESCR ("contains" );
1788
+ DESCR ("polygon contains point? " );
1788
1789
DATA (insert OID = 1429 ( pt_contained_poly PGUID 11 f t f 2 f 16 "600 604" 100 0 0 100 foo bar ));
1789
- DESCR ("" );
1790
+ DESCR ("point contained by polygon? " );
1790
1791
1791
1792
DATA (insert OID = 1430 ( path_isclosed PGUID 11 f t f 1 f 16 "602" 100 0 0 100 foo bar ));
1792
1793
DESCR ("" );
@@ -1810,26 +1811,26 @@ DATA(insert OID = 1439 ( path_div_pt PGUID 11 f t f 2 f 602 "602 600" 100 0 0
1810
1811
DESCR ("divide" );
1811
1812
1812
1813
DATA (insert OID = 1440 ( point PGUID 11 f t f 2 f 600 "701 701" 100 0 0 100 foo bar ));
1813
- DESCR ("" );
1814
+ DESCR ("convert x, y to point " );
1814
1815
DATA (insert OID = 1441 ( point_add PGUID 11 f t f 2 f 600 "600 600" 100 0 0 100 foo bar ));
1815
- DESCR ("addition " );
1816
+ DESCR ("add points (translate) " );
1816
1817
DATA (insert OID = 1442 ( point_sub PGUID 11 f t f 2 f 600 "600 600" 100 0 0 100 foo bar ));
1817
- DESCR ("subtract" );
1818
+ DESCR ("subtract points (translate) " );
1818
1819
DATA (insert OID = 1443 ( point_mul PGUID 11 f t f 2 f 600 "600 600" 100 0 0 100 foo bar ));
1819
- DESCR ("multiply" );
1820
+ DESCR ("multiply points (scale/rotate) " );
1820
1821
DATA (insert OID = 1444 ( point_div PGUID 11 f t f 2 f 600 "600 600" 100 0 0 100 foo bar ));
1821
- DESCR ("divide" );
1822
+ DESCR ("divide points (scale/rotate) " );
1822
1823
1823
1824
DATA (insert OID = 1445 ( poly_npoints PGUID 11 f t f 1 f 23 "604" 100 0 0 100 foo bar ));
1824
- DESCR ("" );
1825
+ DESCR ("number of points in polygon " );
1825
1826
DATA (insert OID = 1446 ( poly_box PGUID 11 f t f 1 f 603 "604" 100 0 0 100 foo bar ));
1826
- DESCR ("" );
1827
+ DESCR ("convert polygon to bounding box " );
1827
1828
DATA (insert OID = 1447 ( poly_path PGUID 11 f t f 1 f 602 "604" 100 0 0 100 foo bar ));
1828
- DESCR ("" );
1829
+ DESCR ("convert polygon to path " );
1829
1830
DATA (insert OID = 1448 ( box_poly PGUID 11 f t f 1 f 604 "603" 100 0 0 100 foo bar ));
1830
- DESCR ("" );
1831
+ DESCR ("convert box to polygon " );
1831
1832
DATA (insert OID = 1449 ( path_poly PGUID 11 f t f 1 f 604 "602" 100 0 0 100 foo bar ));
1832
- DESCR ("" );
1833
+ DESCR ("convert path to polygon " );
1833
1834
1834
1835
DATA (insert OID = 1450 ( circle_in PGUID 11 f t f 1 f 718 "0" 100 0 1 0 foo bar ));
1835
1836
DESCR ("(internal)" );
0 commit comments