1998-10-22 15:51:07 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_proc.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "procedure" relation (pg_proc)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2000-09-19 20:18:04 +02:00
|
|
|
* $Id: pg_proc.h,v 1.167 2000/09/19 18:18:01 petere Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* The script catalog/genbki.sh reads this file and generates .bki
|
|
|
|
* information from the DATA() statements. utils/Gen_fmgrtab.sh
|
2000-06-13 09:35:40 +02:00
|
|
|
* generates fmgroids.h and fmgrtab.c the same way.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
1997-09-07 07:04:48 +02:00
|
|
|
* XXX do NOT break up DATA() statements into multiple lines!
|
|
|
|
* the scripts are not as smart as you might think...
|
|
|
|
* XXX (eg. #if 0 #endif won't do what you think)
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_PROC_H
|
|
|
|
#define PG_PROC_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "tcop/dest.h"
|
1996-11-05 11:37:16 +01:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* postgres.h contains the system type definintions and the
|
|
|
|
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
|
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_proc definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_proc
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
CATALOG(pg_proc) BOOTSTRAP
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData proname;
|
1998-08-11 20:28:49 +02:00
|
|
|
int4 proowner;
|
1997-09-08 04:41:22 +02:00
|
|
|
Oid prolang;
|
|
|
|
bool proisinh;
|
|
|
|
bool proistrusted;
|
|
|
|
bool proiscachable;
|
2000-05-28 19:56:29 +02:00
|
|
|
bool proisstrict;
|
1997-09-08 04:41:22 +02:00
|
|
|
int2 pronargs;
|
|
|
|
bool proretset;
|
|
|
|
Oid prorettype;
|
2000-01-10 17:13:23 +01:00
|
|
|
oidvector proargtypes;
|
1997-09-08 04:41:22 +02:00
|
|
|
int4 probyte_pct;
|
|
|
|
int4 properbyte_cpu;
|
|
|
|
int4 propercall_cpu;
|
|
|
|
int4 prooutin_ratio;
|
|
|
|
text prosrc; /* VARIABLE LENGTH FIELD */
|
|
|
|
bytea probin; /* VARIABLE LENGTH FIELD */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_proc;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_proc corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_proc relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_proc *Form_pg_proc;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_proc
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
2000-05-28 19:56:29 +02:00
|
|
|
#define Natts_pg_proc 17
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_proc_proname 1
|
|
|
|
#define Anum_pg_proc_proowner 2
|
|
|
|
#define Anum_pg_proc_prolang 3
|
|
|
|
#define Anum_pg_proc_proisinh 4
|
|
|
|
#define Anum_pg_proc_proistrusted 5
|
|
|
|
#define Anum_pg_proc_proiscachable 6
|
2000-05-28 19:56:29 +02:00
|
|
|
#define Anum_pg_proc_proisstrict 7
|
|
|
|
#define Anum_pg_proc_pronargs 8
|
|
|
|
#define Anum_pg_proc_proretset 9
|
|
|
|
#define Anum_pg_proc_prorettype 10
|
|
|
|
#define Anum_pg_proc_proargtypes 11
|
|
|
|
#define Anum_pg_proc_probyte_pct 12
|
|
|
|
#define Anum_pg_proc_properbyte_cpu 13
|
|
|
|
#define Anum_pg_proc_propercall_cpu 14
|
|
|
|
#define Anum_pg_proc_prooutin_ratio 15
|
|
|
|
#define Anum_pg_proc_prosrc 16
|
|
|
|
#define Anum_pg_proc_probin 17
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_proc
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
1998-07-08 16:09:00 +02:00
|
|
|
/* keep the following ordered by OID so that later changes can be made easier */
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 1 - 99 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1242 ( boolin PGUID 12 f t t t 1 f 16 "0" 100 0 0 100 boolin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1243 ( boolout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 boolout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1244 ( byteain PGUID 12 f t t t 1 f 17 "0" 100 0 0 100 byteain - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 31 ( byteaout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 byteaout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1245 ( charin PGUID 12 f t t t 1 f 18 "0" 100 0 0 100 charin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 33 ( charout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 charout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 34 ( namein PGUID 12 f t t t 1 f 19 "0" 100 0 0 100 namein - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 35 ( nameout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 nameout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 38 ( int2in PGUID 12 f t t t 1 f 21 "0" 100 0 0 100 int2in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 39 ( int2out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int2out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 40 ( int2vectorin PGUID 12 f t t t 1 f 22 "0" 100 0 0 100 int2vectorin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 41 ( int2vectorout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int2vectorout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 42 ( int4in PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int4in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 43 ( int4out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int4out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 44 ( regprocin PGUID 12 f t f t 1 f 24 "0" 100 0 0 100 regprocin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 45 ( regprocout PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 regprocout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-06 01:12:09 +02:00
|
|
|
DATA(insert OID = 46 ( textin PGUID 12 f t t t 1 f 25 "0" 100 0 0 100 textin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-06 01:12:09 +02:00
|
|
|
DATA(insert OID = 47 ( textout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 textout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 48 ( tidin PGUID 12 f t t t 1 f 27 "0" 100 0 0 100 tidin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 49 ( tidout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 tidout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 50 ( xidin PGUID 12 f t t t 1 f 28 "0" 100 0 0 100 xidin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 51 ( xidout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 xidout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 52 ( cidin PGUID 12 f t t t 1 f 29 "0" 100 0 0 100 cidin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 53 ( cidout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 cidout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 54 ( oidvectorin PGUID 12 f t t t 1 f 30 "0" 100 0 0 100 oidvectorin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 55 ( oidvectorout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 oidvectorout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 56 ( boollt PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 boollt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 57 ( boolgt PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 boolgt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 60 ( booleq PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 booleq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 61 ( chareq PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 chareq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 62 ( nameeq PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 nameeq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 63 ( int2eq PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 64 ( int2lt PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 65 ( int4eq PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 66 ( int4lt PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 67 ( texteq PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 texteq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 68 ( xideq PGUID 12 f t t t 2 f 16 "28 28" 100 0 0 100 xideq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 69 ( cideq PGUID 12 f t t t 2 f 16 "29 29" 100 0 0 100 cideq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 70 ( charne PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 charne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1246 ( charlt PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 charlt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 72 ( charle PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 charle - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 73 ( chargt PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 chargt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 74 ( charge PGUID 12 f t t t 2 f 16 "18 18" 100 0 0 100 charge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1248 ( charpl PGUID 12 f t t t 2 f 18 "18 18" 100 0 0 100 charpl - ));
|
|
|
|
DESCR("add");
|
|
|
|
DATA(insert OID = 1250 ( charmi PGUID 12 f t t t 2 f 18 "18 18" 100 0 0 100 charmi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 77 ( charmul PGUID 12 f t t t 2 f 18 "18 18" 100 0 0 100 charmul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 78 ( chardiv PGUID 12 f t t t 2 f 18 "18 18" 100 0 0 100 chardiv - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 79 ( nameregexeq PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameregexeq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("matches regex., case-sensitive");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1252 ( nameregexne PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameregexne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("does not match regex., case-sensitive");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1254 ( textregexeq PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textregexeq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("matches regex., case-sensitive");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1256 ( textregexne PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textregexne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("does not match regex., case-sensitive");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1257 ( textlen PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 textlen - ));
|
1997-12-16 16:53:17 +01:00
|
|
|
DESCR("length");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1258 ( textcat PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 textcat - ));
|
1998-05-29 15:37:29 +02:00
|
|
|
DESCR("concatenate");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 84 ( boolne PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 boolne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 89 ( version PGUID 12 f t f t 0 f 25 "" 100 0 0 100 pgsql_version - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("PostgreSQL version string");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1265 ( rtcostestimate PGUID 12 f t f t 7 f 0 "0 0 0 0 0 0 0" 100 0 0 100 rtcostestimate - ));
|
2000-01-23 00:50:30 +01:00
|
|
|
DESCR("r-tree cost estimator");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1268 ( btcostestimate PGUID 12 f t f t 7 f 0 "0 0 0 0 0 0 0" 100 0 0 100 btcostestimate - ));
|
2000-01-23 00:50:30 +01:00
|
|
|
DESCR("btree cost estimator");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 100 - 199 */
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 100 ( int8fac PGUID 12 f t t t 1 f 20 "20" 100 0 0 100 int8fac - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("factorial");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 101 ( eqsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 eqsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("restriction selectivity of = and related operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 102 ( neqsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 neqsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("restriction selectivity of <> and related operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 103 ( scalarltsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 scalarltsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("restriction selectivity of < and related operators on scalar datatypes");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 104 ( scalargtsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 scalargtsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("restriction selectivity of > and related operators on scalar datatypes");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 105 ( eqjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 eqjoinsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("join selectivity of = and related operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 106 ( neqjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 neqjoinsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("join selectivity of <> and related operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 107 ( scalarltjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 scalarltjoinsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("join selectivity of < and related operators on scalar datatypes");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 108 ( scalargtjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 scalargtjoinsel - ));
|
2000-01-24 08:16:52 +01:00
|
|
|
DESCR("join selectivity of > and related operators on scalar datatypes");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 112 ( text PGUID 12 f t t t 1 f 25 "23" 100 0 0 100 int4_text - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int4 to text");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 113 ( text PGUID 12 f t t t 1 f 25 "21" 100 0 0 100 int2_text - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int2 to text");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 114 ( text PGUID 12 f t t t 1 f 25 "26" 100 0 0 100 oid_text - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert oid to text");
|
1997-10-25 07:29:48 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 115 ( box_above PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_above - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is above");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 116 ( box_below PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_below - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is below");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 117 ( point_in PGUID 12 f t t t 1 f 600 "0" 100 0 0 100 point_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 118 ( point_out PGUID 12 f t t t 1 f 23 "600" 100 0 0 100 point_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 119 ( lseg_in PGUID 12 f t t t 1 f 601 "0" 100 0 0 100 lseg_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 120 ( lseg_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 lseg_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 121 ( path_in PGUID 12 f t t t 1 f 602 "0" 100 0 0 100 path_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 122 ( path_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 path_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 123 ( box_in PGUID 12 f t t t 1 f 603 "0" 100 0 0 100 box_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 124 ( box_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 box_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 125 ( box_overlap PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_overlap - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 126 ( box_ge PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_ge - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("greater-than-or-equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 127 ( box_gt PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_gt - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("greater-than by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 128 ( box_eq PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_eq - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 129 ( box_lt PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_lt - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("less-than by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 130 ( box_le PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_le - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("less-than-or-equal by area");
|
|
|
|
DATA(insert OID = 131 ( point_above PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_above - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is above");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 132 ( point_left PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_left - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is left of");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 133 ( point_right PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_right - ));
|
|
|
|
DESCR("is right of");
|
|
|
|
DATA(insert OID = 134 ( point_below PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_below - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is below");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 135 ( point_eq PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_eq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("same as");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 136 ( on_pb PGUID 12 f t t t 2 f 16 "600 603" 100 0 0 100 on_pb - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("point is inside");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 137 ( on_ppath PGUID 12 f t t t 2 f 16 "600 602" 100 0 0 100 on_ppath - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contained in");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 138 ( box_center PGUID 12 f t t t 1 f 600 "603" 100 0 0 100 box_center - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("center of");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 139 ( areasel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 areasel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("restriction selectivity for area-comparison operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 140 ( areajoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 areajoinsel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("join selectivity for area-comparison operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 141 ( int4mul PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 142 ( int4fac PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4fac - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("factorial");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 144 ( int4ne PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 145 ( int2ne PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 146 ( int2gt PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 147 ( int4gt PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 148 ( int2le PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 149 ( int4le PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 150 ( int4ge PGUID 12 f t t t 2 f 16 "23 23" 100 0 0 100 int4ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 151 ( int2ge PGUID 12 f t t t 2 f 16 "21 21" 100 0 0 100 int2ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 152 ( int2mul PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 153 ( int2div PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 154 ( int4div PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 155 ( int2mod PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2mod - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 156 ( int4mod PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4mod - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("modulus");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 157 ( textne PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 158 ( int24eq PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 159 ( int42eq PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 160 ( int24lt PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 161 ( int42lt PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 162 ( int24gt PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 163 ( int42gt PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 164 ( int24ne PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 165 ( int42ne PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 166 ( int24le PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 167 ( int42le PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 168 ( int24ge PGUID 12 f t t t 2 f 16 "21 23" 100 0 0 100 int24ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 169 ( int42ge PGUID 12 f t t t 2 f 16 "23 21" 100 0 0 100 int42ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 170 ( int24mul PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 171 ( int42mul PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 172 ( int24div PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 173 ( int42div PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 174 ( int24mod PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24mod - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 175 ( int42mod PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42mod - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 176 ( int2pl PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 177 ( int4pl PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 178 ( int24pl PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 179 ( int42pl PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 180 ( int2mi PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 181 ( int4mi PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 182 ( int24mi PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 183 ( int42mi PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 184 ( oideq PGUID 12 f t t t 2 f 16 "26 26" 100 0 0 100 oideq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 185 ( oidne PGUID 12 f t t t 2 f 16 "26 26" 100 0 0 100 oidne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 186 ( box_same PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_same - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("same as");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 187 ( box_contain PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_contain - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contains");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 188 ( box_left PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_left - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is left of");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 189 ( box_overleft PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_overleft - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps, but does not extend to right of");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 190 ( box_overright PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_overright - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps, but does not extend to left of");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 191 ( box_right PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_right - ));
|
|
|
|
DESCR("is right of");
|
|
|
|
DATA(insert OID = 192 ( box_contained PGUID 12 f t t t 2 f 16 "603 603" 100 0 0 100 box_contained - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contained in");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 193 ( rt_box_union PGUID 12 f t t t 2 f 603 "603 603" 100 0 0 100 rt_box_union - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 194 ( rt_box_inter PGUID 12 f t t t 2 f 603 "603 603" 100 0 0 100 rt_box_inter - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 195 ( rt_box_size PGUID 12 f t t t 2 f 700 "603 700" 100 0 0 100 rt_box_size - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 196 ( rt_bigbox_size PGUID 12 f t t t 2 f 700 "603 700" 100 0 0 100 rt_bigbox_size - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 197 ( rt_poly_union PGUID 12 f t t t 2 f 604 "604 604" 100 0 0 100 rt_poly_union - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 198 ( rt_poly_inter PGUID 12 f t t t 2 f 604 "604 604" 100 0 0 100 rt_poly_inter - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 199 ( rt_poly_size PGUID 12 f t t t 2 f 23 "604 700" 100 0 0 100 rt_poly_size - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 200 - 299 */
|
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 200 ( float4in PGUID 12 f t t t 1 f 700 "0" 100 0 0 100 float4in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 201 ( float4out PGUID 12 f t t t 1 f 23 "700" 100 0 0 100 float4out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 202 ( float4mul PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 203 ( float4div PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 204 ( float4pl PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4pl - ));
|
|
|
|
DESCR("add");
|
|
|
|
DATA(insert OID = 205 ( float4mi PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 206 ( float4um PGUID 12 f t t t 1 f 700 "700" 100 0 0 100 float4um - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 207 ( float4abs PGUID 12 f t t t 1 f 700 "700" 100 0 0 100 float4abs - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("absolute value");
|
2000-07-17 05:05:41 +02:00
|
|
|
DATA(insert OID = 208 ( float4_accum PGUID 12 f t t t 2 f 1022 "1022 700" 100 0 0 100 float4_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 209 ( float4larger PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 211 ( float4smaller PGUID 12 f t t t 2 f 700 "700 700" 100 0 0 100 float4smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 212 ( int4um PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4um - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 213 ( int2um PGUID 12 f t t t 1 f 21 "21" 100 0 0 100 int2um - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 214 ( float8in PGUID 12 f t t t 1 f 701 "0" 100 0 0 100 float8in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 215 ( float8out PGUID 12 f t t t 1 f 23 "701" 100 0 0 100 float8out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 216 ( float8mul PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 217 ( float8div PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 218 ( float8pl PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8pl - ));
|
|
|
|
DESCR("add");
|
|
|
|
DATA(insert OID = 219 ( float8mi PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 220 ( float8um PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 float8um - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 221 ( float8abs PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 float8abs - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("absolute value");
|
2000-07-17 05:05:41 +02:00
|
|
|
DATA(insert OID = 222 ( float8_accum PGUID 12 f t t t 2 f 1022 "1022 701" 100 0 0 100 float8_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 223 ( float8larger PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 224 ( float8smaller PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 float8smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 225 ( lseg_center PGUID 12 f t t t 1 f 600 "601" 100 0 0 100 lseg_center - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("center of");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 226 ( path_center PGUID 12 f t t t 1 f 600 "602" 100 0 0 100 path_center - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("center of");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 227 ( poly_center PGUID 12 f t t t 1 f 600 "604" 100 0 0 100 poly_center - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("center of");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 228 ( dround PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dround - ));
|
|
|
|
DESCR("round to nearest integer");
|
|
|
|
DATA(insert OID = 229 ( dtrunc PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dtrunc - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("truncate to integer");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 230 ( dsqrt PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dsqrt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("square root");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 231 ( dcbrt PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dcbrt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("cube root");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 232 ( dpow PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 dpow - ));
|
2000-03-19 02:12:18 +01:00
|
|
|
DESCR("exponentiation (x^y)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 233 ( dexp PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dexp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("natural exponential (e^x)");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 234 ( dlog1 PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dlog1 - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("natural logarithm");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 235 ( float8 PGUID 12 f t t t 1 f 701 "21" 100 0 0 100 i2tod - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int2 to float8");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 236 ( float4 PGUID 12 f t t t 1 f 700 "21" 100 0 0 100 i2tof - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int2 to float4");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 237 ( int2 PGUID 12 f t t t 1 f 21 "701" 100 0 0 100 dtoi2 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float8 to int2");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 238 ( int2 PGUID 12 f t t t 1 f 21 "700" 100 0 0 100 ftoi2 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float4 to int2");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 239 ( line_distance PGUID 12 f t t t 2 f 701 "628 628" 100 0 0 100 line_distance - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 240 ( nabstimein PGUID 12 f t f t 1 f 702 "0" 100 0 0 100 nabstimein - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 241 ( nabstimeout PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 nabstimeout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 242 ( reltimein PGUID 12 f t f t 1 f 703 "0" 100 0 0 100 reltimein - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 243 ( reltimeout PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 reltimeout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 244 ( timepl PGUID 12 f t f t 2 f 702 "702 703" 100 0 0 100 timepl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 245 ( timemi PGUID 12 f t f t 2 f 702 "702 703" 100 0 0 100 timemi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 246 ( tintervalin PGUID 12 f t f t 1 f 704 "0" 100 0 0 100 tintervalin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 247 ( tintervalout PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 tintervalout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 248 ( intinterval PGUID 12 f t f t 2 f 16 "702 704" 100 0 0 100 intinterval - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("abstime in tinterval");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 249 ( tintervalrel PGUID 12 f t f t 1 f 703 "704" 100 0 0 100 tintervalrel - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 250 ( timenow PGUID 12 f t f t 0 f 702 "0" 100 0 0 100 timenow - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("Current date and time (abstime)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 251 ( abstimeeq PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimeeq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 252 ( abstimene PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimene - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 253 ( abstimelt PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimelt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 254 ( abstimegt PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimegt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 255 ( abstimele PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimele - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 256 ( abstimege PGUID 12 f t f t 2 f 16 "702 702" 100 0 0 100 abstimege - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 257 ( reltimeeq PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimeeq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 258 ( reltimene PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimene - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 259 ( reltimelt PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimelt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 260 ( reltimegt PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimegt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 261 ( reltimele PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimele - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 262 ( reltimege PGUID 12 f t t t 2 f 16 "703 703" 100 0 0 100 reltimege - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 263 ( tintervalsame PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalsame - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("same as");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 264 ( tintervalct PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalct - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 265 ( tintervalov PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalov - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 266 ( tintervalleneq PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervalleneq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("length equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 267 ( tintervallenne PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervallenne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("length not equal to");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 268 ( tintervallenlt PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervallenlt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("length less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 269 ( tintervallengt PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervallengt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("length greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 270 ( tintervallenle PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervallenle - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("length less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 271 ( tintervallenge PGUID 12 f t f t 2 f 16 "704 703" 100 0 0 100 tintervallenge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("length greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 272 ( tintervalstart PGUID 12 f t f t 1 f 702 "704" 100 0 0 100 tintervalstart - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("start of interval");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 273 ( tintervalend PGUID 12 f t f t 1 f 702 "704" 100 0 0 100 tintervalend - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 274 ( timeofday PGUID 12 f t f t 0 f 25 "0" 100 0 0 100 timeofday - ));
|
1999-12-01 19:03:26 +01:00
|
|
|
DESCR("Current date and time with microseconds");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 275 ( isfinite PGUID 12 f t f t 1 f 16 "702" 100 0 0 100 abstime_finite - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 276 ( int2fac PGUID 12 f t t t 1 f 23 "21" 100 0 0 100 int2fac - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 277 ( inter_sl PGUID 12 f t t t 2 f 16 "601 628" 100 0 0 100 inter_sl - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 278 ( inter_lb PGUID 12 f t t t 2 f 16 "628 603" 100 0 0 100 inter_lb - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 279 ( float48mul PGUID 12 f t t t 2 f 701 "700 701" 100 0 0 100 float48mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 280 ( float48div PGUID 12 f t t t 2 f 701 "700 701" 100 0 0 100 float48div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 281 ( float48pl PGUID 12 f t t t 2 f 701 "700 701" 100 0 0 100 float48pl - ));
|
|
|
|
DESCR("add");
|
|
|
|
DATA(insert OID = 282 ( float48mi PGUID 12 f t t t 2 f 701 "700 701" 100 0 0 100 float48mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 283 ( float84mul PGUID 12 f t t t 2 f 701 "701 700" 100 0 0 100 float84mul - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 284 ( float84div PGUID 12 f t t t 2 f 701 "701 700" 100 0 0 100 float84div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 285 ( float84pl PGUID 12 f t t t 2 f 701 "701 700" 100 0 0 100 float84pl - ));
|
|
|
|
DESCR("add");
|
|
|
|
DATA(insert OID = 286 ( float84mi PGUID 12 f t t t 2 f 701 "701 700" 100 0 0 100 float84mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 287 ( float4eq PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 288 ( float4ne PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 289 ( float4lt PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 290 ( float4le PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 291 ( float4gt PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 292 ( float4ge PGUID 12 f t t t 2 f 16 "700 700" 100 0 0 100 float4ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 293 ( float8eq PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 294 ( float8ne PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 295 ( float8lt PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 296 ( float8le PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 297 ( float8gt PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 298 ( float8ge PGUID 12 f t t t 2 f 16 "701 701" 100 0 0 100 float8ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 299 ( float48eq PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 300 - 399 */
|
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 300 ( float48ne PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 301 ( float48lt PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 302 ( float48le PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 303 ( float48gt PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 304 ( float48ge PGUID 12 f t t t 2 f 16 "700 701" 100 0 0 100 float48ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 305 ( float84eq PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 306 ( float84ne PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 307 ( float84lt PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 308 ( float84le PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 309 ( float84gt PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 310 ( float84ge PGUID 12 f t t t 2 f 16 "701 700" 100 0 0 100 float84ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 311 ( float8 PGUID 12 f t t t 1 f 701 "700" 100 0 0 100 ftod - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float4 to float8");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 312 ( float4 PGUID 12 f t t t 1 f 700 "701" 100 0 0 100 dtof - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float8 to float4");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 313 ( int4 PGUID 12 f t t t 1 f 23 "21" 100 0 0 100 i2toi4 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int2 to int4");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 314 ( int2 PGUID 12 f t t t 1 f 21 "23" 100 0 0 100 i4toi2 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int4 to int2");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 315 ( int2vectoreq PGUID 12 f t t t 2 f 16 "22 22" 100 0 0 100 int2vectoreq - ));
|
2000-02-21 04:36:59 +01:00
|
|
|
DESCR("equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 316 ( float8 PGUID 12 f t t t 1 f 701 "23" 100 0 0 100 i4tod - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int4 to float8");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 317 ( int4 PGUID 12 f t t t 1 f 23 "701" 100 0 0 100 dtoi4 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float8 to int4");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 318 ( float4 PGUID 12 f t t t 1 f 700 "23" 100 0 0 100 i4tof - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int4 to float4");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 319 ( int4 PGUID 12 f t t t 1 f 23 "700" 100 0 0 100 ftoi4 - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float4 to int4");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 320 ( rtinsert PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 rtinsert - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 321 ( rtdelete PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 rtdelete - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 322 ( rtgettuple PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 rtgettuple - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-07-15 00:18:02 +02:00
|
|
|
DATA(insert OID = 323 ( rtbuild PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 rtbuild - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 324 ( rtbeginscan PGUID 12 f t f t 4 f 23 "0 0 0 0" 100 0 0 100 rtbeginscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 325 ( rtendscan PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 rtendscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 326 ( rtmarkpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 rtmarkpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 327 ( rtrestrpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 rtrestrpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 328 ( rtrescan PGUID 12 f t f t 3 f 23 "0 0 0" 100 0 0 100 rtrescan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("r-tree(internal)");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 330 ( btgettuple PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 btgettuple - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 331 ( btinsert PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 btinsert - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 332 ( btdelete PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 btdelete - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 333 ( btbeginscan PGUID 12 f t f t 4 f 23 "0 0 0 0" 100 0 0 100 btbeginscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 334 ( btrescan PGUID 12 f t f t 3 f 23 "0 0 0" 100 0 0 100 btrescan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 335 ( btendscan PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 btendscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 336 ( btmarkpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 btmarkpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 337 ( btrestrpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 btrestrpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
2000-07-15 00:18:02 +02:00
|
|
|
DATA(insert OID = 338 ( btbuild PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 btbuild - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree(internal)");
|
1999-09-26 04:28:44 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 339 ( poly_same PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_same - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("same as");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 340 ( poly_contain PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_contain - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contains");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 341 ( poly_left PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_left - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is left of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 342 ( poly_overleft PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_overleft - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps, but does not extend to right of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 343 ( poly_overright PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_overright - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps, but does not extend to left of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 344 ( poly_right PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_right - ));
|
2000-07-29 20:46:12 +02:00
|
|
|
DESCR("is right of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 345 ( poly_contained PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_contained - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contained in");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 346 ( poly_overlap PGUID 12 f t t t 2 f 16 "604 604" 100 0 0 100 poly_overlap - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 347 ( poly_in PGUID 12 f t t t 1 f 604 "0" 100 0 0 100 poly_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 348 ( poly_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 poly_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 350 ( btint2cmp PGUID 12 f t t t 2 f 23 "21 21" 100 0 0 100 btint2cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 351 ( btint4cmp PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 btint4cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 842 ( btint8cmp PGUID 12 f t t t 2 f 23 "20 20" 100 0 0 100 btint8cmp - ));
|
1999-03-14 06:09:05 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 354 ( btfloat4cmp PGUID 12 f t t t 2 f 23 "700 700" 100 0 0 100 btfloat4cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 355 ( btfloat8cmp PGUID 12 f t t t 2 f 23 "701 701" 100 0 0 100 btfloat8cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 356 ( btoidcmp PGUID 12 f t t t 2 f 23 "26 26" 100 0 0 100 btoidcmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 404 ( btoidvectorcmp PGUID 12 f t t t 2 f 23 "30 30" 100 0 0 100 btoidvectorcmp - ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 357 ( btabstimecmp PGUID 12 f t f t 2 f 23 "702 702" 100 0 0 100 btabstimecmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 358 ( btcharcmp PGUID 12 f t t t 2 f 23 "18 18" 100 0 0 100 btcharcmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 359 ( btnamecmp PGUID 12 f t t t 2 f 23 "19 19" 100 0 0 100 btnamecmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 360 ( bttextcmp PGUID 12 f t t t 2 f 23 "25 25" 100 0 0 100 bttextcmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 361 ( lseg_distance PGUID 12 f t t t 2 f 701 "601 601" 100 0 0 100 lseg_distance - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 362 ( lseg_interpt PGUID 12 f t t t 2 f 600 "601 601" 100 0 0 100 lseg_interpt - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 363 ( dist_ps PGUID 12 f t t t 2 f 701 "600 601" 100 0 0 100 dist_ps - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 364 ( dist_pb PGUID 12 f t t t 2 f 701 "600 603" 100 0 0 100 dist_pb - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between point and box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 365 ( dist_sb PGUID 12 f t t t 2 f 701 "601 603" 100 0 0 100 dist_sb - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between segment and box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 366 ( close_ps PGUID 12 f t t t 2 f 600 "600 601" 100 0 0 100 close_ps - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point on line segment");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 367 ( close_pb PGUID 12 f t t t 2 f 600 "600 603" 100 0 0 100 close_pb - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point on box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 368 ( close_sb PGUID 12 f t t t 2 f 600 "601 603" 100 0 0 100 close_sb - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point to line segment on box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 369 ( on_ps PGUID 12 f t t t 2 f 16 "600 601" 100 0 0 100 on_ps - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("point contained in segment");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 370 ( path_distance PGUID 12 f t t t 2 f 701 "602 602" 100 0 0 100 path_distance - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between paths");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 371 ( dist_ppath PGUID 12 f t t t 2 f 701 "600 602" 100 0 0 100 dist_ppath - ));
|
2000-07-29 20:46:12 +02:00
|
|
|
DESCR("distance between point and path");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 372 ( on_sb PGUID 12 f t t t 2 f 16 "601 603" 100 0 0 100 on_sb - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contained in");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 373 ( inter_sb PGUID 12 f t t t 2 f 16 "601 603" 100 0 0 100 inter_sb - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("intersects?");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 400 - 499 */
|
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 406 ( text PGUID 12 f t t t 1 f 25 "19" 100 0 0 100 name_text - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert name to text");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 407 ( name PGUID 12 f t t t 1 f 19 "25" 100 0 0 100 text_name - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to name");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 408 ( bpchar PGUID 12 f t t t 1 f 1042 "19" 100 0 0 100 name_bpchar - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert name to char()");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 409 ( name PGUID 12 f t t t 1 f 19 "1042" 100 0 0 100 bpchar_name - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert char() to name");
|
1998-05-29 15:37:29 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 438 ( hashcostestimate PGUID 12 f t f t 7 f 0 "0 0 0 0 0 0 0" 100 0 0 100 hashcostestimate - ));
|
2000-01-23 00:50:30 +01:00
|
|
|
DESCR("hash index cost estimator");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 440 ( hashgettuple PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 hashgettuple - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 441 ( hashinsert PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 hashinsert - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 442 ( hashdelete PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 hashdelete - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 443 ( hashbeginscan PGUID 12 f t f t 4 f 23 "0 0 0 0" 100 0 0 100 hashbeginscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 444 ( hashrescan PGUID 12 f t f t 3 f 23 "0 0 0" 100 0 0 100 hashrescan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 445 ( hashendscan PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 hashendscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 446 ( hashmarkpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 hashmarkpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 447 ( hashrestrpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 hashrestrpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-07-15 00:18:02 +02:00
|
|
|
DATA(insert OID = 448 ( hashbuild PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 hashbuild - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 449 ( hashint2 PGUID 12 f t t t 1 f 23 "21" 100 0 0 100 hashint2 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 450 ( hashint4 PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 hashint4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 949 ( hashint8 PGUID 12 f t t t 1 f 23 "20" 100 0 0 100 hashint8 - ));
|
1999-03-14 06:09:05 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 451 ( hashfloat4 PGUID 12 f t t t 1 f 23 "700" 100 0 0 100 hashfloat4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 452 ( hashfloat8 PGUID 12 f t t t 1 f 23 "701" 100 0 0 100 hashfloat8 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 453 ( hashoid PGUID 12 f t t t 1 f 23 "26" 100 0 0 100 hashoid - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 454 ( hashchar PGUID 12 f t t t 1 f 23 "18" 100 0 0 100 hashchar - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 455 ( hashname PGUID 12 f t t t 1 f 23 "19" 100 0 0 100 hashname - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-06-19 05:55:01 +02:00
|
|
|
DATA(insert OID = 456 ( hashvarlena PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 hashvarlena - ));
|
|
|
|
DESCR("hash any varlena type");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 457 ( hashoidvector PGUID 12 f t t t 1 f 23 "30" 100 0 0 100 hashoidvector - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("hash");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 458 ( text_larger PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 text_larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 459 ( text_smaller PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 text_smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 460 ( int8in PGUID 12 f t t t 1 f 20 "0" 100 0 0 100 int8in - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 461 ( int8out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int8out - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 462 ( int8um PGUID 12 f t t t 1 f 20 "20" 100 0 0 100 int8um - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 463 ( int8pl PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 464 ( int8mi PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8mi - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("subtract");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 465 ( int8mul PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8mul - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("multiply");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 466 ( int8div PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8div - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("divide");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 467 ( int8eq PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8eq - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 468 ( int8ne PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8ne - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("not equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 469 ( int8lt PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8lt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("less-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 470 ( int8gt PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8gt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("greater-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 471 ( int8le PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 472 ( int8ge PGUID 12 f t t t 2 f 16 "20 20" 100 0 0 100 int8ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 474 ( int84eq PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84eq - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 475 ( int84ne PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84ne - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("not equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 476 ( int84lt PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84lt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("less-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 477 ( int84gt PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84gt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("greater-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 478 ( int84le PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 479 ( int84ge PGUID 12 f t t t 2 f 16 "20 23" 100 0 0 100 int84ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 480 ( int4 PGUID 12 f t t t 1 f 23 "20" 100 0 0 100 int84 - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("convert int8 to int4");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 481 ( int8 PGUID 12 f t t t 1 f 20 "23" 100 0 0 100 int48 - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("convert int4 to int8");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 482 ( float8 PGUID 12 f t t t 1 f 701 "20" 100 0 0 100 i8tod - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("convert int8 to float8");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 483 ( int8 PGUID 12 f t t t 1 f 20 "701" 100 0 0 100 dtoi8 - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("convert float8 to int8");
|
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* OIDS 500 - 599 */
|
|
|
|
|
|
|
|
/* OIDS 600 - 699 */
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1285 ( int4notin PGUID 12 f t f t 2 f 16 "23 25" 100 0 0 100 int4notin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not in");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1286 ( oidnotin PGUID 12 f t f t 2 f 16 "26 25" 100 0 0 100 oidnotin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not in");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1287 ( int44in PGUID 12 f t t t 1 f 22 "0" 100 0 0 100 int44in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 653 ( int44out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 int44out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 655 ( namelt PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 namelt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 656 ( namele PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 namele - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 657 ( namegt PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 namegt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 658 ( namege PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 namege - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 659 ( namene PGUID 12 f t t t 2 f 16 "19 19" 100 0 0 100 namene - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
1998-05-10 00:48:37 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 668 ( bpchar PGUID 12 f t t t 2 f 1042 "1042 23" 100 0 0 100 bpchar - ));
|
|
|
|
DESCR("adjust char() to typmod length");
|
|
|
|
DATA(insert OID = 669 ( varchar PGUID 12 f t t t 2 f 1043 "1043 23" 100 0 0 100 varchar - ));
|
|
|
|
DESCR("adjust varchar() to typmod length");
|
1998-05-10 00:48:37 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 676 ( mktinterval PGUID 12 f t f t 2 f 704 "702 702" 100 0 0 100 mktinterval - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert to tinterval");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 619 ( oidvectorne PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectorne - ));
|
1998-10-29 19:07:09 +01:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 677 ( oidvectorlt PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectorlt - ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("less-than");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 678 ( oidvectorle PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectorle - ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 679 ( oidvectoreq PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectoreq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 680 ( oidvectorge PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectorge - ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 681 ( oidvectorgt PGUID 12 f t t t 2 f 16 "30 30" 100 0 0 100 oidvectorgt - ));
|
1998-08-19 04:04:17 +02:00
|
|
|
DESCR("greater-than");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 700 - 799 */
|
2000-09-19 20:18:04 +02:00
|
|
|
DATA(insert OID = 710 ( getpgusername PGUID 12 f t f t 0 f 19 "0" 100 0 0 100 current_user - ));
|
|
|
|
DESCR("deprecated -- use current_user");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 711 ( userfntest PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 userfntest - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 713 ( oidrand PGUID 12 f t f t 2 f 16 "26 23" 100 0 0 100 oidrand - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("random");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 715 ( oidsrand PGUID 12 f t f t 1 f 16 "23" 100 0 0 100 oidsrand - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("seed random number generator");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 716 ( oideqint4 PGUID 12 f t t t 2 f 16 "26 23" 100 0 0 100 oideqint4 - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 717 ( int4eqoid PGUID 12 f t t t 2 f 16 "23 26" 100 0 0 100 int4eqoid - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 720 ( octet_length PGUID 12 f t t t 1 f 23 "17" 100 0 0 100 byteaoctetlen - ));
|
2000-08-21 06:48:57 +02:00
|
|
|
DESCR("octet length");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 721 ( get_byte PGUID 12 f t t t 2 f 23 "17 23" 100 0 0 100 byteaGetByte - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 722 ( set_byte PGUID 12 f t t t 3 f 17 "17 23 23" 100 0 0 100 byteaSetByte - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 723 ( get_bit PGUID 12 f t t t 2 f 23 "17 23" 100 0 0 100 byteaGetBit - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 724 ( set_bit PGUID 12 f t t t 3 f 17 "17 23 23" 100 0 0 100 byteaSetBit - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 725 ( dist_pl PGUID 12 f t t t 2 f 701 "600 628" 100 0 0 100 dist_pl - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between point and line");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 726 ( dist_lb PGUID 12 f t t t 2 f 701 "628 603" 100 0 0 100 dist_lb - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between line and box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 727 ( dist_sl PGUID 12 f t t t 2 f 701 "601 628" 100 0 0 100 dist_sl - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between lseg and line");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 728 ( dist_cpoly PGUID 12 f t t t 2 f 701 "718 604" 100 0 0 100 dist_cpoly - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 729 ( poly_distance PGUID 12 f t t t 2 f 701 "604 604" 100 0 0 100 poly_distance - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 740 ( text_lt PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 text_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 741 ( text_le PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 text_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 742 ( text_gt PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 text_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 743 ( text_ge PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 text_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 744 ( array_eq PGUID 12 f t t t 2 f 16 "0 0" 100 0 0 100 array_eq -));
|
|
|
|
DESCR("array equal");
|
2000-09-19 20:18:04 +02:00
|
|
|
|
|
|
|
DATA(insert OID = 745 ( current_user PGUID 12 f t f t 0 f 19 "0" 100 0 0 100 current_user - ));
|
|
|
|
DESCR("current user name");
|
|
|
|
DATA(insert OID = 746 ( session_user PGUID 12 f t f t 0 f 19 "0" 100 0 0 100 session_user - ));
|
|
|
|
DESCR("session user name");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 747 ( array_dims PGUID 12 f t t t 1 f 25 "0" 100 0 0 100 array_dims -));
|
|
|
|
DESCR("array dimensions");
|
|
|
|
DATA(insert OID = 750 ( array_in PGUID 12 f t t t 3 f 23 "0 26 23" 100 0 0 100 array_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("array");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 751 ( array_out PGUID 12 f t t t 2 f 23 "0 26" 100 0 0 100 array_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("array");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 760 ( smgrin PGUID 12 f t f t 1 f 210 "0" 100 0 0 100 smgrin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("storage manager(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 761 ( smgrout PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 smgrout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("storage manager(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 762 ( smgreq PGUID 12 f t f t 2 f 16 "210 210" 100 0 0 100 smgreq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("storage manager");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 763 ( smgrne PGUID 12 f t f t 2 f 16 "210 210" 100 0 0 100 smgrne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("storage manager");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 764 ( lo_import PGUID 12 f t f t 1 f 26 "25" 100 0 0 100 lo_import - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object import");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 765 ( lo_export PGUID 12 f t f t 2 f 23 "26 25" 100 0 0 100 lo_export - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object export");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 766 ( int4inc PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4inc - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("increment");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 768 ( int4larger PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4larger - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("larger of two");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 769 ( int4smaller PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4smaller - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("smaller of two");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 770 ( int2larger PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2larger - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("larger of two");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 771 ( int2smaller PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2smaller - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("smaller of two");
|
1999-09-26 04:28:44 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 772 ( gistcostestimate PGUID 12 f t f t 7 f 0 "0 0 0 0 0 0 0" 100 0 0 100 gistcostestimate - ));
|
2000-01-23 00:50:30 +01:00
|
|
|
DESCR("gist cost estimator");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 774 ( gistgettuple PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 gistgettuple - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 775 ( gistinsert PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 gistinsert - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 776 ( gistdelete PGUID 12 f t f t 2 f 23 "0 0" 100 0 0 100 gistdelete - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 777 ( gistbeginscan PGUID 12 f t f t 4 f 23 "0 0 0 0" 100 0 0 100 gistbeginscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 778 ( gistrescan PGUID 12 f t f t 3 f 23 "0 0 0" 100 0 0 100 gistrescan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 779 ( gistendscan PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 gistendscan - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 780 ( gistmarkpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 gistmarkpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 781 ( gistrestrpos PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 gistrestrpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
2000-07-15 00:18:02 +02:00
|
|
|
DATA(insert OID = 782 ( gistbuild PGUID 12 f t f t 5 f 23 "0 0 0 0 0" 100 0 0 100 gistbuild - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("gist(internal)");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 784 ( tintervaleq PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervaleq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 785 ( tintervalne PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 786 ( tintervallt PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervallt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 787 ( tintervalgt PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalgt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 788 ( tintervalle PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalle - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 789 ( tintervalge PGUID 12 f t f t 2 f 16 "704 704" 100 0 0 100 tintervalge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1997-09-20 18:29:38 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* OIDS 800 - 899 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 817 ( oid PGUID 12 f t t t 1 f 26 "25" 100 0 0 100 text_oid -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to oid");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 818 ( int2 PGUID 12 f t t t 1 f 21 "25" 100 0 0 100 text_int2 -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to int2");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 819 ( int4 PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 text_int4 -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to int4");
|
1997-10-25 07:29:48 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 838 ( float8 PGUID 12 f t t t 1 f 701 "25" 100 0 0 100 text_float8 -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to float8");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 839 ( float4 PGUID 12 f t t t 1 f 700 "25" 100 0 0 100 text_float4 -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert text to float4");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 840 ( text PGUID 12 f t t t 1 f 25 "701" 100 0 0 100 float8_text -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float8 to text");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 841 ( text PGUID 12 f t t t 1 f 25 "700" 100 0 0 100 float4_text -));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert float4 to text");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 846 ( cash_mul_flt4 PGUID 12 f t t t 2 f 790 "790 700" 100 0 0 100 cash_mul_flt4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 847 ( cash_div_flt4 PGUID 12 f t t t 2 f 790 "790 700" 100 0 0 100 cash_div_flt4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 848 ( flt4_mul_cash PGUID 12 f t t t 2 f 790 "700 790" 100 0 0 100 flt4_mul_cash - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
1997-09-20 18:29:38 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 849 ( position PGUID 12 f t t t 2 f 23 "25 25" 100 0 0 100 textpos - ));
|
1998-11-17 15:36:51 +01:00
|
|
|
DESCR("return position of substring");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 850 ( textlike PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textlike - ));
|
1998-11-17 15:36:51 +01:00
|
|
|
DESCR("matches LIKE expression");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 851 ( textnlike PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textnlike - ));
|
1998-11-17 15:36:51 +01:00
|
|
|
DESCR("does not match LIKE expression");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 852 ( int48eq PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48eq - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 853 ( int48ne PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48ne - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("not equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 854 ( int48lt PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48lt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("less-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 855 ( int48gt PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48gt - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("greater-than");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 856 ( int48le PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 857 ( int48ge PGUID 12 f t t t 2 f 16 "23 20" 100 0 0 100 int48ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 858 ( namelike PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 namelike - ));
|
1998-11-17 15:36:51 +01:00
|
|
|
DESCR("matches LIKE expression");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 859 ( namenlike PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 namenlike - ));
|
1998-11-17 15:36:51 +01:00
|
|
|
DESCR("does not match LIKE expression");
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 860 ( bpchar PGUID 12 f t t t 1 f 1042 "18" 100 0 0 100 char_bpchar - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert char to char()");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 861 ( char PGUID 12 f t t t 1 f 18 "1042" 100 0 0 100 bpchar_char - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert char() to char");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 862 ( int4_mul_cash PGUID 12 f t t t 2 f 790 "23 790" 100 0 0 100 int4_mul_cash - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 863 ( int2_mul_cash PGUID 12 f t t t 2 f 790 "21 790" 100 0 0 100 int2_mul_cash - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 864 ( cash_mul_int4 PGUID 12 f t t t 2 f 790 "790 23" 100 0 0 100 cash_mul_int4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 865 ( cash_div_int4 PGUID 12 f t t t 2 f 790 "790 23" 100 0 0 100 cash_div_int4 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 866 ( cash_mul_int2 PGUID 12 f t t t 2 f 790 "790 21" 100 0 0 100 cash_mul_int2 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 867 ( cash_div_int2 PGUID 12 f t t t 2 f 790 "790 21" 100 0 0 100 cash_div_int2 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
1997-09-20 18:29:38 +02:00
|
|
|
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 886 ( cash_in PGUID 12 f t t t 1 f 790 "0" 100 0 0 100 cash_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 887 ( cash_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 cash_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-07 20:49:56 +02:00
|
|
|
DATA(insert OID = 1273 ( cash_words PGUID 12 f t t t 1 f 25 "790" 100 0 0 100 cash_words - ));
|
1998-01-25 21:23:40 +01:00
|
|
|
DESCR("output amount as words");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 888 ( cash_eq PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 889 ( cash_ne PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 890 ( cash_lt PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 891 ( cash_le PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 892 ( cash_gt PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 893 ( cash_ge PGUID 12 f t t t 2 f 16 "790 790" 100 0 0 100 cash_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 894 ( cash_pl PGUID 12 f t t t 2 f 790 "790 790" 100 0 0 100 cash_pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 895 ( cash_mi PGUID 12 f t t t 2 f 790 "790 790" 100 0 0 100 cash_mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 896 ( cash_mul_flt8 PGUID 12 f t t t 2 f 790 "790 701" 100 0 0 100 cash_mul_flt8 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 897 ( cash_div_flt8 PGUID 12 f t t t 2 f 790 "790 701" 100 0 0 100 cash_div_flt8 - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 898 ( cashlarger PGUID 12 f t t t 2 f 790 "790 790" 100 0 0 100 cashlarger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 899 ( cashsmaller PGUID 12 f t t t 2 f 790 "790 790" 100 0 0 100 cashsmaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
1997-04-15 19:41:44 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 919 ( flt8_mul_cash PGUID 12 f t t t 2 f 790 "701 790" 100 0 0 100 flt8_mul_cash - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
1997-09-20 18:29:38 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* OIDS 900 - 999 */
|
1997-10-25 07:29:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 940 ( mod PGUID 12 f t t t 2 f 21 "21 21" 100 0 0 100 int2mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 941 ( mod PGUID 12 f t t t 2 f 23 "23 23" 100 0 0 100 int4mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 942 ( mod PGUID 12 f t t t 2 f 23 "21 23" 100 0 0 100 int24mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 943 ( mod PGUID 12 f t t t 2 f 23 "23 21" 100 0 0 100 int42mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 945 ( int8mod PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 947 ( mod PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8mod - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("modulus");
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 944 ( char PGUID 12 f t t t 1 f 18 "25" 100 0 0 100 text_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert text to char");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 946 ( text PGUID 12 f t t t 1 f 25 "18" 100 0 0 100 char_text - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert char to text");
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 950 ( istrue PGUID 12 f t t f 1 f 16 "16" 100 0 0 100 istrue - ));
|
|
|
|
DESCR("bool is true (not false or unknown)");
|
|
|
|
DATA(insert OID = 951 ( isfalse PGUID 12 f t t f 1 f 16 "16" 100 0 0 100 isfalse - ));
|
|
|
|
DESCR("bool is false (not true or unknown)");
|
1997-10-30 17:45:12 +01:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 952 ( lo_open PGUID 12 f t f t 2 f 23 "26 23" 100 0 0 100 lo_open - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object open");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 953 ( lo_close PGUID 12 f t f t 1 f 23 "23" 100 0 0 100 lo_close - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object close");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 954 ( loread PGUID 12 f t f t 2 f 17 "23 23" 100 0 0 100 loread - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object read");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 955 ( lowrite PGUID 12 f t f t 2 f 23 "23 17" 100 0 0 100 lowrite - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object write");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 956 ( lo_lseek PGUID 12 f t f t 3 f 23 "23 23 23" 100 0 0 100 lo_lseek - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object seek");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 957 ( lo_creat PGUID 12 f t f t 1 f 26 "23" 100 0 0 100 lo_creat - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object create");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 958 ( lo_tell PGUID 12 f t f t 1 f 23 "23" 100 0 0 100 lo_tell - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object position");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 959 ( on_pl PGUID 12 f t t t 2 f 16 "600 628" 100 0 0 100 on_pl - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("point on line?");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 960 ( on_sl PGUID 12 f t t t 2 f 16 "601 628" 100 0 0 100 on_sl - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("lseg on line?");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 961 ( close_pl PGUID 12 f t t t 2 f 600 "600 628" 100 0 0 100 close_pl - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point on line");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 962 ( close_sl PGUID 12 f t t t 2 f 600 "601 628" 100 0 0 100 close_sl - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point to line segment on line");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 963 ( close_lb PGUID 12 f t t t 2 f 600 "628 603" 100 0 0 100 close_lb - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point to line on box");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 964 ( lo_unlink PGUID 12 f t f t 1 f 23 "26" 100 0 0 100 lo_unlink - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("large object unlink(delete)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 972 ( regproctooid PGUID 12 f t t t 1 f 26 "24" 100 0 0 100 regproctooid - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("get oid for regproc");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 973 ( path_inter PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_inter - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("paths intersect?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 975 ( area PGUID 12 f t t t 1 f 701 "603" 100 0 0 100 box_area - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("box area");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 976 ( width PGUID 12 f t t t 1 f 701 "603" 100 0 0 100 box_width - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("box width");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 977 ( height PGUID 12 f t t t 1 f 701 "603" 100 0 0 100 box_height - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("box height");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 978 ( box_distance PGUID 12 f t t t 2 f 701 "603 603" 100 0 0 100 box_distance - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between boxes");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 980 ( box_intersect PGUID 12 f t t t 2 f 603 "603 603" 100 0 0 100 box_intersect - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("box intersection (another box)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 981 ( diagonal PGUID 12 f t t t 1 f 601 "603" 100 0 0 100 box_diagonal - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("box diagonal");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 982 ( path_n_lt PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_n_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 983 ( path_n_gt PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_n_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 984 ( path_n_eq PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_n_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 985 ( path_n_le PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_n_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 986 ( path_n_ge PGUID 12 f t t t 2 f 16 "602 602" 100 0 0 100 path_n_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 987 ( path_length PGUID 12 f t t t 1 f 701 "602" 100 0 0 100 path_length - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("sum of path segments");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 988 ( point_ne PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_ne - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("not equal");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 989 ( point_vert PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_vert - ));
|
|
|
|
DESCR("vertically aligned?");
|
|
|
|
DATA(insert OID = 990 ( point_horiz PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_horiz - ));
|
|
|
|
DESCR("horizontally aligned?");
|
|
|
|
DATA(insert OID = 991 ( point_distance PGUID 12 f t t t 2 f 701 "600 600" 100 0 0 100 point_distance - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 992 ( slope PGUID 12 f t t t 2 f 701 "600 600" 100 0 0 100 point_slope - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("slope between points");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 993 ( lseg PGUID 12 f t t t 2 f 601 "600 600" 100 0 0 100 lseg_construct - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("convert points to line segment");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 994 ( lseg_intersect PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_intersect - ));
|
|
|
|
DESCR("intersect?");
|
|
|
|
DATA(insert OID = 995 ( lseg_parallel PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_parallel - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("parallel?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 996 ( lseg_perp PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_perp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("perpendicular?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 997 ( lseg_vertical PGUID 12 f t t t 1 f 16 "601" 100 0 0 100 lseg_vertical - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("vertical?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 998 ( lseg_horizontal PGUID 12 f t t t 1 f 16 "601" 100 0 0 100 lseg_horizontal - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("horizontal?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 999 ( lseg_eq PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 1000 - 1999 */
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1029 ( nullvalue PGUID 12 f t t f 1 f 16 "0" 100 0 0 100 nullvalue - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1030 ( nonnullvalue PGUID 12 f t t f 1 f 16 "0" 100 0 0 100 nonnullvalue - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 00:39:17 +02:00
|
|
|
DATA(insert OID = 1031 ( aclitemin PGUID 12 f t f t 1 f 1033 "0" 100 0 0 100 aclitemin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 00:39:17 +02:00
|
|
|
DATA(insert OID = 1032 ( aclitemout PGUID 12 f t f t 1 f 23 "1033" 100 0 0 100 aclitemout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-01 00:39:17 +02:00
|
|
|
DATA(insert OID = 1035 ( aclinsert PGUID 12 f t f t 2 f 1034 "1034 1033" 100 0 0 100 aclinsert - ));
|
|
|
|
DESCR("add/update ACL item");
|
|
|
|
DATA(insert OID = 1036 ( aclremove PGUID 12 f t f t 2 f 1034 "1034 1033" 100 0 0 100 aclremove - ));
|
|
|
|
DESCR("remove ACL item");
|
|
|
|
DATA(insert OID = 1037 ( aclcontains PGUID 12 f t f t 2 f 16 "1034 1033" 100 0 0 100 aclcontains - ));
|
|
|
|
DESCR("does ACL contain item?");
|
2000-08-24 05:29:15 +02:00
|
|
|
DATA(insert OID = 1038 ( seteval PGUID 12 f t f t 1 t 23 "26" 100 0 0 100 seteval - ));
|
|
|
|
DESCR("internal function supporting PostQuel-style sets");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1044 ( bpcharin PGUID 12 f t t t 3 f 1042 "0 26 23" 100 0 0 100 bpcharin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1045 ( bpcharout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 bpcharout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1046 ( varcharin PGUID 12 f t t t 3 f 1043 "0 26 23" 100 0 0 100 varcharin - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1047 ( varcharout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 varcharout - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1048 ( bpchareq PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpchareq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1049 ( bpcharlt PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpcharlt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1050 ( bpcharle PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpcharle - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1051 ( bpchargt PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpchargt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1052 ( bpcharge PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpcharge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1053 ( bpcharne PGUID 12 f t t t 2 f 16 "1042 1042" 100 0 0 100 bpcharne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1070 ( varchareq PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varchareq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1071 ( varcharlt PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varcharlt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1072 ( varcharle PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varcharle - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1073 ( varchargt PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varchargt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1074 ( varcharge PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varcharge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1075 ( varcharne PGUID 12 f t t t 2 f 16 "1043 1043" 100 0 0 100 varcharne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1078 ( bpcharcmp PGUID 12 f t t t 2 f 23 "1042 1042" 100 0 0 100 bpcharcmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1079 ( varcharcmp PGUID 12 f t t t 2 f 23 "1043 1043" 100 0 0 100 varcharcmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-06-19 05:55:01 +02:00
|
|
|
DATA(insert OID = 1080 ( hashbpchar PGUID 12 f t t t 1 f 23 "1042" 100 0 0 100 hashbpchar - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("hash");
|
2000-07-07 21:24:43 +02:00
|
|
|
DATA(insert OID = 1081 ( format_type PGUID 12 f t t f 2 f 25 "26 23" 100 0 0 100 format_type - ));
|
|
|
|
DESCR("format a type oid and atttypmod to canonical SQL");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1084 ( date_in PGUID 12 f t f t 1 f 1082 "0" 100 0 0 100 date_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1085 ( date_out PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 date_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1086 ( date_eq PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1087 ( date_lt PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1088 ( date_le PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1089 ( date_gt PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1090 ( date_ge PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1091 ( date_ne PGUID 12 f t t t 2 f 16 "1082 1082" 100 0 0 100 date_ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1092 ( date_cmp PGUID 12 f t t t 2 f 23 "1082 1082" 100 0 0 100 date_cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* OIDS 1100 - 1199 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1102 ( time_lt PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1103 ( time_le PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1104 ( time_gt PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1105 ( time_ge PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1106 ( time_ne PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1107 ( time_cmp PGUID 12 f t t t 2 f 23 "1083 1083" 100 0 0 100 time_cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1138 ( date_larger PGUID 12 f t t t 2 f 1082 "1082 1082" 100 0 0 100 date_larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1139 ( date_smaller PGUID 12 f t t t 2 f 1082 "1082 1082" 100 0 0 100 date_smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1140 ( date_mi PGUID 12 f t t t 2 f 23 "1082 1082" 100 0 0 100 date_mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1141 ( date_pli PGUID 12 f t t t 2 f 1082 "1082 23" 100 0 0 100 date_pli - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1142 ( date_mii PGUID 12 f t t t 2 f 1082 "1082 23" 100 0 0 100 date_mii - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1143 ( time_in PGUID 12 f t f t 1 f 1083 "0" 100 0 0 100 time_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1144 ( time_out PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 time_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1145 ( time_eq PGUID 12 f t t t 2 f 16 "1083 1083" 100 0 0 100 time_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
1997-03-25 09:11:24 +01:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1146 ( circle_add_pt PGUID 12 f t t t 2 f 718 "718 600" 100 0 0 100 circle_add_pt - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1147 ( circle_sub_pt PGUID 12 f t t t 2 f 718 "718 600" 100 0 0 100 circle_sub_pt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1148 ( circle_mul_pt PGUID 12 f t t t 2 f 718 "718 600" 100 0 0 100 circle_mul_pt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("multiply");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1149 ( circle_div_pt PGUID 12 f t t t 2 f 718 "718 600" 100 0 0 100 circle_div_pt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
1997-07-29 18:17:52 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1150 ( timestamp_in PGUID 12 f t f t 1 f 1184 "0" 100 0 0 100 timestamp_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1151 ( timestamp_out PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 timestamp_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1152 ( timestamp_eq PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1153 ( timestamp_ne PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1154 ( timestamp_lt PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1155 ( timestamp_le PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1156 ( timestamp_ge PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1157 ( timestamp_gt PGUID 12 f t f t 2 f 16 "1184 1184" 100 0 0 100 timestamp_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1159 ( timezone PGUID 12 f t f t 2 f 25 "25 1184" 100 0 0 100 timestamp_zone - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("time zone");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1160 ( interval_in PGUID 12 f t f t 1 f 1186 "0" 100 0 0 100 interval_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1161 ( interval_out PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 interval_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1162 ( interval_eq PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_eq - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1163 ( interval_ne PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_ne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1164 ( interval_lt PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_lt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1165 ( interval_le PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_le - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1166 ( interval_ge PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_ge - ));
|
1998-07-18 20:34:34 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1167 ( interval_gt PGUID 12 f t f t 2 f 16 "1186 1186" 100 0 0 100 interval_gt - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1168 ( interval_um PGUID 12 f t f t 1 f 1186 "1186" 100 0 0 100 interval_um - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1169 ( interval_pl PGUID 12 f t f t 2 f 1186 "1186 1186" 100 0 0 100 interval_pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1170 ( interval_mi PGUID 12 f t f t 2 f 1186 "1186 1186" 100 0 0 100 interval_mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1171 ( date_part PGUID 12 f t f t 2 f 701 "25 1184" 100 0 0 100 timestamp_part - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("extract field from timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1172 ( date_part PGUID 12 f t f t 2 f 701 "25 1186" 100 0 0 100 interval_part - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("extract field from interval");
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1173 ( timestamp PGUID 12 f t f t 1 f 1184 "702" 100 0 0 100 abstime_timestamp - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert abstime to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1174 ( timestamp PGUID 12 f t f t 1 f 1184 "1082" 100 0 0 100 date_timestamp - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert date to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1176 ( timestamp PGUID 12 f t f t 2 f 1184 "1082 1083" 100 0 0 100 datetime_timestamp - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert date and time to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1177 ( interval PGUID 12 f t f t 1 f 1186 "703" 100 0 0 100 reltime_interval - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert reltime to interval");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1178 ( date PGUID 12 f t f t 1 f 1082 "1184" 100 0 0 100 timestamp_date - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert timestamp to date");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1179 ( date PGUID 12 f t f t 1 f 1082 "702" 100 0 0 100 abstime_date - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert abstime to date");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1180 ( abstime PGUID 12 f t f t 1 f 702 "1184" 100 0 0 100 timestamp_abstime - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert timestamp to abstime");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1188 ( timestamp_mi PGUID 12 f t f t 2 f 1186 "1184 1184" 100 0 0 100 timestamp_mi - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("subtract");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1189 ( timestamp_pl_span PGUID 12 f t f t 2 f 1184 "1184 1186" 100 0 0 100 timestamp_pl_span - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("plus");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1190 ( timestamp_mi_span PGUID 12 f t f t 2 f 1184 "1184 1186" 100 0 0 100 timestamp_mi_span - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("minus");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1191 ( timestamp PGUID 12 f t f t 1 f 1184 "25" 100 0 0 100 text_timestamp - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert text to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1192 ( text PGUID 12 f t f t 1 f 25 "1184" 100 0 0 100 timestamp_text - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert timestamp to text");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1193 ( text PGUID 12 f t f t 1 f 25 "1186" 100 0 0 100 interval_text - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert interval to text");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1194 ( reltime PGUID 12 f t f t 1 f 703 "1186" 100 0 0 100 interval_reltime - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert interval to reltime");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1195 ( timestamp_smaller PGUID 12 f t f t 2 f 1184 "1184 1184" 100 0 0 100 timestamp_smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1196 ( timestamp_larger PGUID 12 f t f t 2 f 1184 "1184 1184" 100 0 0 100 timestamp_larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1197 ( interval_smaller PGUID 12 f t f t 2 f 1186 "1186 1186" 100 0 0 100 interval_smaller - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("smaller of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1198 ( interval_larger PGUID 12 f t f t 2 f 1186 "1186 1186" 100 0 0 100 interval_larger - ));
|
1998-12-08 07:18:34 +01:00
|
|
|
DESCR("larger of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1199 ( age PGUID 12 f t f t 2 f 1186 "1184 1184" 100 0 0 100 timestamp_age - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("date difference preserving months and years");
|
1997-03-25 09:11:24 +01:00
|
|
|
|
1997-04-15 19:41:44 +02:00
|
|
|
/* OIDS 1200 - 1299 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1200 ( reltime PGUID 12 f t t t 1 f 703 "23" 100 0 0 100 int4reltime - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert int4 to reltime");
|
1997-07-29 18:17:52 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1217 ( date_trunc PGUID 12 f t f t 2 f 1184 "25 1184" 100 0 0 100 timestamp_trunc - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("truncate timestamp to specified units");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1218 ( date_trunc PGUID 12 f t f t 2 f 1186 "25 1186" 100 0 0 100 interval_trunc - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("truncate interval to specified units");
|
1997-03-25 09:11:24 +01:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1230 ( int8abs PGUID 12 f t t t 1 f 20 "20" 100 0 0 100 int8abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1236 ( int8larger PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8larger - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("larger of two");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1237 ( int8smaller PGUID 12 f t t t 2 f 20 "20 20" 100 0 0 100 int8smaller - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("smaller of two");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1238 ( texticregexeq PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 texticregexeq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("matches regex., case-insensitive");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1239 ( texticregexne PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 texticregexne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("does not match regex., case-insensitive");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1240 ( nameicregexeq PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameicregexeq - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("matches regex., case-insensitive");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1241 ( nameicregexne PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameicregexne - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("does not match regex., case-insensitive");
|
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More date time functions
Here are some additional patches mostly related to the date and time
data types. It includes some type conversion routines to move between
the different date types and some other date manipulation routines such
as date_part(units,datetime).
I noticed Edmund Mergl et al's neat trick for getting function overloading
for builtin functions, so started to use that for the date and time stuff.
Later, if someone figures out how to get function overloading directly
for internal C code, then we can move to that technique.
These patches include documentation updates (don't faint!) for the built-in
man page. Doesn't yet include mention of timestamp, since I don't know
much about it and since it may change a bit to become a _real_ ANSI timestamp
which would include parser support for the declaration syntax (what do you
think, Dan?).
The patches were developed on the 970330 release, but have been rebuilt
off of the 970402 release. The first patch below is to get libpq to compile,
on my Linux box, but is not related to the rest of the patches and you can
choose not to apply that one at this time. Thanks in advance, scrappy!
1997-04-02 20:36:24 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1251 ( int4abs PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1253 ( int2abs PGUID 12 f t t t 1 f 21 "21" 100 0 0 100 int2abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
1997-12-16 16:53:17 +01:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1263 ( interval PGUID 12 f t f t 1 f 1186 "25" 100 0 0 100 text_interval - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert text to interval");
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1271 ( overlaps PGUID 12 f t t t 4 f 16 "1266 1266 1266 1266" 100 0 0 100 overlaps_timetz - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1272 ( datetime_pl PGUID 12 f t f t 2 f 1184 "1082 1083" 100 0 0 100 datetime_timestamp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert date and time to timestamp");
|
1997-12-16 16:53:17 +01:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1274 ( int84pl PGUID 12 f t t t 2 f 20 "20 23" 100 0 0 100 int84pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1275 ( int84mi PGUID 12 f t t t 2 f 20 "20 23" 100 0 0 100 int84mi - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("subtract");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1276 ( int84mul PGUID 12 f t t t 2 f 20 "20 23" 100 0 0 100 int84mul - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("multiply");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1277 ( int84div PGUID 12 f t t t 2 f 20 "20 23" 100 0 0 100 int84div - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("divide");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1278 ( int48pl PGUID 12 f t t t 2 f 20 "23 20" 100 0 0 100 int48pl - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1279 ( int48mi PGUID 12 f t t t 2 f 20 "23 20" 100 0 0 100 int48mi - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("subtract");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1280 ( int48mul PGUID 12 f t t t 2 f 20 "23 20" 100 0 0 100 int48mul - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("multiply");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1281 ( int48div PGUID 12 f t t t 2 f 20 "23 20" 100 0 0 100 int48div - ));
|
1998-07-08 16:09:00 +02:00
|
|
|
DESCR("divide");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1288 ( text PGUID 12 f t t t 1 f 25 "20" 100 0 0 100 int8_text - ));
|
1999-02-13 05:19:54 +01:00
|
|
|
DESCR("convert int8 to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1289 ( int8 PGUID 12 f t t t 1 f 20 "25" 100 0 0 100 text_int8 - ));
|
1999-02-13 05:19:54 +01:00
|
|
|
DESCR("convert text to int8");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1290 ( _bpchar PGUID 12 f t t t 2 f 1014 "1014 23" 100 0 0 100 _bpchar - ));
|
|
|
|
DESCR("adjust char()[] to typmod length");
|
|
|
|
DATA(insert OID = 1291 ( _varchar PGUID 12 f t t t 2 f 1015 "1015 23" 100 0 0 100 _varchar - ));
|
|
|
|
DESCR("adjust varchar()[] to typmod length");
|
1999-05-03 21:10:48 +02:00
|
|
|
|
2000-08-03 18:35:08 +02:00
|
|
|
DATA(insert OID = 1292 ( tideq PGUID 12 f t f t 2 f 16 "27 27" 100 0 0 100 tideq - ));
|
1999-10-11 08:28:29 +02:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1293 ( currtid PGUID 12 f t f t 2 f 27 "26 27" 100 0 0 100 currtid_byreloid - ));
|
1999-10-11 08:28:29 +02:00
|
|
|
DESCR("latest tid of a tuple");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1294 ( currtid2 PGUID 12 f t f t 2 f 27 "25 27" 100 0 0 100 currtid_byrelname - ));
|
1999-10-11 08:28:29 +02:00
|
|
|
DESCR("latest tid of a tuple");
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1296 ( timedate_pl PGUID 14 f t f t 2 f 1184 "1083 1082" 100 0 0 100 "select datetime_pl($2, $1)" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert time and date to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1297 ( datetimetz_pl PGUID 12 f t f t 2 f 1184 "1082 1266" 100 0 0 100 datetimetz_timestamp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert date and time with time zone to timestamp");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1298 ( timetzdate_pl PGUID 14 f t f t 2 f 1184 "1266 1082" 100 0 0 100 "select datetimetz_pl($2, $1)" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert time with time zone and date to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1299 ( now PGUID 12 f t f t 0 f 1184 "0" 100 0 0 100 now - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("current transaction time");
|
1997-04-15 19:41:44 +02:00
|
|
|
|
|
|
|
/* OIDS 1300 - 1399 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1300 ( positionsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 positionsel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("restriction selectivity for position-comparison operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1301 ( positionjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 positionjoinsel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("join selectivity for position-comparison operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1302 ( contsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 contsel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("restriction selectivity for containment comparison operators");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1303 ( contjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 contjoinsel - ));
|
2000-02-17 04:40:02 +01:00
|
|
|
DESCR("join selectivity for containment comparison operators");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1304 ( overlaps PGUID 12 f t t t 4 f 16 "1184 1184 1184 1184" 100 0 0 100 overlaps_timestamp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1305 ( overlaps PGUID 14 f t t t 4 f 16 "1184 1186 1184 1186" 100 0 0 100 "select overlaps($1, ($1 + $2), $3, ($3 + $4))" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1306 ( overlaps PGUID 14 f t t t 4 f 16 "1184 1184 1184 1186" 100 0 0 100 "select overlaps($1, $2, $3, ($3 + $4))" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1307 ( overlaps PGUID 14 f t t t 4 f 16 "1184 1186 1184 1184" 100 0 0 100 "select overlaps($1, ($1 + $2), $3, $4)" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1308 ( overlaps PGUID 12 f t t t 4 f 16 "1083 1083 1083 1083" 100 0 0 100 overlaps_time - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1309 ( overlaps PGUID 14 f t t t 4 f 16 "1083 1186 1083 1186" 100 0 0 100 "select overlaps($1, ($1 + $2), $3, ($3 + $4))" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1310 ( overlaps PGUID 14 f t t t 4 f 16 "1083 1083 1083 1186" 100 0 0 100 "select overlaps($1, $2, $3, ($3 + $4))" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1311 ( overlaps PGUID 14 f t t t 4 f 16 "1083 1186 1083 1083" 100 0 0 100 "select overlaps($1, ($1 + $2), $3, $4)" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("SQL92 interval comparison");
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1314 ( timestamp_cmp PGUID 12 f t f t 2 f 23 "1184 1184" 100 0 0 100 timestamp_cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1315 ( interval_cmp PGUID 12 f t f t 2 f 23 "1186 1186" 100 0 0 100 interval_cmp - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1316 ( time PGUID 12 f t f t 1 f 1083 "1184" 100 0 0 100 timestamp_time - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert timestamp to time");
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1317 ( length PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 textlen - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("length");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1318 ( length PGUID 12 f t t t 1 f 23 "1042" 100 0 0 100 bpcharlen - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("character length");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1319 ( length PGUID 12 f t t t 1 f 23 "1043" 100 0 0 100 varcharlen - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("character length");
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1326 ( interval_div PGUID 12 f t f t 2 f 1186 "1186 701" 100 0 0 100 interval_div - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("divide");
|
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More date time functions
Here are some additional patches mostly related to the date and time
data types. It includes some type conversion routines to move between
the different date types and some other date manipulation routines such
as date_part(units,datetime).
I noticed Edmund Mergl et al's neat trick for getting function overloading
for builtin functions, so started to use that for the date and time stuff.
Later, if someone figures out how to get function overloading directly
for internal C code, then we can move to that technique.
These patches include documentation updates (don't faint!) for the built-in
man page. Doesn't yet include mention of timestamp, since I don't know
much about it and since it may change a bit to become a _real_ ANSI timestamp
which would include parser support for the declaration syntax (what do you
think, Dan?).
The patches were developed on the 970330 release, but have been rebuilt
off of the 970402 release. The first patch below is to get libpq to compile,
on my Linux box, but is not related to the rest of the patches and you can
choose not to apply that one at this time. Thanks in advance, scrappy!
1997-04-02 20:36:24 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1339 ( dlog10 PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dlog10 - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("base 10 logarithm");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1340 ( log PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dlog10 - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("base 10 logarithm");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1341 ( ln PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dlog1 - ));
|
2000-03-19 02:12:18 +01:00
|
|
|
DESCR("natural logarithm");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1342 ( round PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dround - ));
|
|
|
|
DESCR("round to nearest integer");
|
|
|
|
DATA(insert OID = 1343 ( trunc PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dtrunc - ));
|
|
|
|
DESCR("truncate to integer");
|
|
|
|
DATA(insert OID = 1344 ( sqrt PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dsqrt - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("square root");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1345 ( cbrt PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dcbrt - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("cube root");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1346 ( pow PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 dpow - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("exponentiation");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1347 ( exp PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dexp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("exponential");
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1348 ( obj_description PGUID 14 f t f t 1 f 25 "26" 100 0 0 100 "select description from pg_description where objoid = $1" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("get description for object id");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1349 ( oidvectortypes PGUID 12 f t f t 1 f 25 "30" 100 0 0 100 oidvectortypes - ));
|
2000-01-10 17:13:23 +01:00
|
|
|
DESCR("print type names of oidvector field");
|
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More date time functions
Here are some additional patches mostly related to the date and time
data types. It includes some type conversion routines to move between
the different date types and some other date manipulation routines such
as date_part(units,datetime).
I noticed Edmund Mergl et al's neat trick for getting function overloading
for builtin functions, so started to use that for the date and time stuff.
Later, if someone figures out how to get function overloading directly
for internal C code, then we can move to that technique.
These patches include documentation updates (don't faint!) for the built-in
man page. Doesn't yet include mention of timestamp, since I don't know
much about it and since it may change a bit to become a _real_ ANSI timestamp
which would include parser support for the declaration syntax (what do you
think, Dan?).
The patches were developed on the 970330 release, but have been rebuilt
off of the 970402 release. The first patch below is to get libpq to compile,
on my Linux box, but is not related to the rest of the patches and you can
choose not to apply that one at this time. Thanks in advance, scrappy!
1997-04-02 20:36:24 +02:00
|
|
|
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1350 ( timetz_in PGUID 12 f t f t 1 f 1266 "0" 100 0 0 100 timetz_in - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1351 ( timetz_out PGUID 12 f t f t 1 f 23 "0" 100 0 0 100 timetz_out - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1352 ( timetz_eq PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_eq - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1353 ( timetz_ne PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_ne - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("not equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1354 ( timetz_lt PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_lt - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("less-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1355 ( timetz_le PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_le - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("less-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1356 ( timetz_ge PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_ge - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1357 ( timetz_gt PGUID 12 f t t t 2 f 16 "1266 1266" 100 0 0 100 timetz_gt - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("greater-than");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1358 ( timetz_cmp PGUID 12 f t t t 2 f 23 "1266 1266" 100 0 0 100 timetz_cmp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("less-equal-greater");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1359 ( timestamp PGUID 12 f t f t 2 f 1184 "1082 1266" 100 0 0 100 datetimetz_timestamp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert date and time with time zone to timestamp");
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1362 ( time PGUID 14 f t t t 1 f 1083 "1083" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1364 ( time PGUID 14 f t f t 1 f 1083 "702" 100 0 0 100 "select time(timestamp($1))" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert abstime to time");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1365 ( abstime PGUID 14 f t f t 1 f 702 "702" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1367 ( reltime PGUID 14 f t t t 1 f 703 "703" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1368 ( timestamp PGUID 14 f t f t 1 f 1184 "1184" 100 0 0 100 "select $1" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1369 ( interval PGUID 14 f t t t 1 f 1186 "1186" 100 0 0 100 "select $1" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1370 ( interval PGUID 12 f t f t 1 f 1186 "1083" 100 0 0 100 time_interval - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert time to interval");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1371 ( date PGUID 14 f t t t 1 f 1082 "1082" 100 0 0 100 "select $1" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert (noop)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1372 ( char_length PGUID 12 f t t t 1 f 23 "1042" 100 0 0 100 bpcharlen - ));
|
1998-04-27 19:10:50 +02:00
|
|
|
DESCR("character length");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1373 ( char_length PGUID 12 f t t t 1 f 23 "1043" 100 0 0 100 varcharlen - ));
|
1998-04-27 19:10:50 +02:00
|
|
|
DESCR("character length");
|
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1374 ( octet_length PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 textoctetlen - ));
|
1998-04-27 19:10:50 +02:00
|
|
|
DESCR("octet length");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1375 ( octet_length PGUID 12 f t t t 1 f 23 "1042" 100 0 0 100 bpcharoctetlen - ));
|
1998-04-27 19:10:50 +02:00
|
|
|
DESCR("octet length");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1376 ( octet_length PGUID 12 f t t t 1 f 23 "1043" 100 0 0 100 varcharoctetlen - ));
|
1997-12-16 16:53:17 +01:00
|
|
|
DESCR("octet length");
|
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More date time functions
Here are some additional patches mostly related to the date and time
data types. It includes some type conversion routines to move between
the different date types and some other date manipulation routines such
as date_part(units,datetime).
I noticed Edmund Mergl et al's neat trick for getting function overloading
for builtin functions, so started to use that for the date and time stuff.
Later, if someone figures out how to get function overloading directly
for internal C code, then we can move to that technique.
These patches include documentation updates (don't faint!) for the built-in
man page. Doesn't yet include mention of timestamp, since I don't know
much about it and since it may change a bit to become a _real_ ANSI timestamp
which would include parser support for the declaration syntax (what do you
think, Dan?).
The patches were developed on the 970330 release, but have been rebuilt
off of the 970402 release. The first patch below is to get libpq to compile,
on my Linux box, but is not related to the rest of the patches and you can
choose not to apply that one at this time. Thanks in advance, scrappy!
1997-04-02 20:36:24 +02:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1377 ( time_larger PGUID 12 f t t t 2 f 1083 "1083 1083" 100 0 0 100 time_larger - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("larger of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1378 ( time_smaller PGUID 12 f t t t 2 f 1083 "1083 1083" 100 0 0 100 time_smaller - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("smaller of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1379 ( timetz_larger PGUID 12 f t t t 2 f 1266 "1266 1266" 100 0 0 100 timetz_larger - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("larger of two");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1380 ( timetz_smaller PGUID 12 f t t t 2 f 1266 "1266 1266" 100 0 0 100 timetz_smaller - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("smaller of two");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1381 ( char_length PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 textlen - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("length");
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1382 ( date_part PGUID 14 f t f t 2 f 701 "25 702" 100 0 0 100 "select date_part($1, timestamp($2))" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("extract field from abstime");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1383 ( date_part PGUID 14 f t f t 2 f 701 "25 703" 100 0 0 100 "select date_part($1, interval($2))" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("extract field from reltime");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1384 ( date_part PGUID 14 f t f t 2 f 701 "25 1082" 100 0 0 100 "select date_part($1, timestamp($2))" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("extract field from date");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1385 ( date_part PGUID 14 f t f t 2 f 701 "25 1083" 100 0 0 100 "select date_part($1, interval($2))" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("extract field from time");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1386 ( age PGUID 14 f t f t 1 f 1186 "1184" 100 0 0 100 "select age(\'today\', $1)" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("date difference from today preserving months and years");
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1387 ( timetz PGUID 14 f t f t 1 f 1266 "1266" 100 0 0 100 "select $1" - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("noop conversion");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1388 ( timetz PGUID 12 f t f t 1 f 1266 "1184" 100 0 0 100 timestamp_timetz - ));
|
|
|
|
DESCR("convert timestamp to timetz");
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1389 ( isfinite PGUID 12 f t f t 1 f 16 "1184" 100 0 0 100 timestamp_finite - ));
|
1997-12-16 16:53:17 +01:00
|
|
|
DESCR("boolean test");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1390 ( isfinite PGUID 12 f t f t 1 f 16 "1186" 100 0 0 100 interval_finite - ));
|
1997-12-16 16:53:17 +01:00
|
|
|
DESCR("boolean test");
|
|
|
|
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1391 ( factorial PGUID 12 f t t t 1 f 23 "21" 100 0 0 100 int2fac - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("factorial");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1392 ( factorial PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4fac - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("factorial");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1393 ( factorial PGUID 12 f t t t 1 f 20 "20" 100 0 0 100 int8fac - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("factorial");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1394 ( abs PGUID 12 f t t t 1 f 700 "700" 100 0 0 100 float4abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1395 ( abs PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 float8abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1396 ( abs PGUID 12 f t t t 1 f 20 "20" 100 0 0 100 int8abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1397 ( abs PGUID 12 f t t t 1 f 23 "23" 100 0 0 100 int4abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1398 ( abs PGUID 12 f t t t 1 f 21 "21" 100 0 0 100 int2abs - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("absolute value");
|
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More date time functions
Here are some additional patches mostly related to the date and time
data types. It includes some type conversion routines to move between
the different date types and some other date manipulation routines such
as date_part(units,datetime).
I noticed Edmund Mergl et al's neat trick for getting function overloading
for builtin functions, so started to use that for the date and time stuff.
Later, if someone figures out how to get function overloading directly
for internal C code, then we can move to that technique.
These patches include documentation updates (don't faint!) for the built-in
man page. Doesn't yet include mention of timestamp, since I don't know
much about it and since it may change a bit to become a _real_ ANSI timestamp
which would include parser support for the declaration syntax (what do you
think, Dan?).
The patches were developed on the 970330 release, but have been rebuilt
off of the 970402 release. The first patch below is to get libpq to compile,
on my Linux box, but is not related to the rest of the patches and you can
choose not to apply that one at this time. Thanks in advance, scrappy!
1997-04-02 20:36:24 +02:00
|
|
|
|
1997-04-15 19:41:44 +02:00
|
|
|
/* OIDS 1400 - 1499 */
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1400 ( name PGUID 12 f t t t 1 f 19 "1043" 100 0 0 100 text_name - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert varchar to name");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1401 ( varchar PGUID 12 f t t t 1 f 1043 "19" 100 0 0 100 name_text - ));
|
|
|
|
DESCR("convert name to varchar");
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1402 ( float4 PGUID 14 f t t t 1 f 700 "700" 100 0 0 100 "select $1" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert float4 to float4 (no-op)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1403 ( int2 PGUID 14 f t t t 1 f 21 "21" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (no-op)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1404 ( float8 PGUID 14 f t t t 1 f 701 "701" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (no-op)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1405 ( int4 PGUID 14 f t t t 1 f 23 "23" 100 0 0 100 "select $1" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert (no-op)");
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1406 ( isvertical PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_vert - ));
|
|
|
|
DESCR("vertically aligned?");
|
|
|
|
DATA(insert OID = 1407 ( ishorizontal PGUID 12 f t t t 2 f 16 "600 600" 100 0 0 100 point_horiz - ));
|
|
|
|
DESCR("horizontally aligned?");
|
|
|
|
DATA(insert OID = 1408 ( isparallel PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_parallel - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("parallel?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1409 ( isperp PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_perp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("perpendicular?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1410 ( isvertical PGUID 12 f t t t 1 f 16 "601" 100 0 0 100 lseg_vertical - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("vertical?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1411 ( ishorizontal PGUID 12 f t t t 1 f 16 "601" 100 0 0 100 lseg_horizontal - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("horizontal?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1412 ( isparallel PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_parallel - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("lines parallel?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1413 ( isperp PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_perp - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("lines perpendicular?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1414 ( isvertical PGUID 12 f t t t 1 f 16 "628" 100 0 0 100 line_vertical - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("lines vertical?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1415 ( ishorizontal PGUID 12 f t t t 1 f 16 "628" 100 0 0 100 line_horizontal - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("lines horizontal?");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1416 ( point PGUID 12 f t t t 1 f 600 "718" 100 0 0 100 circle_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1417 ( isnottrue PGUID 12 f t t f 1 f 16 "16" 100 0 0 100 isnottrue - ));
|
|
|
|
DESCR("bool is not true (ie, false or unknown)");
|
|
|
|
DATA(insert OID = 1418 ( isnotfalse PGUID 12 f t t f 1 f 16 "16" 100 0 0 100 isnotfalse - ));
|
|
|
|
DESCR("bool is not false (ie, true or unknown)");
|
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1421 ( box PGUID 12 f t t t 2 f 603 "600 600" 100 0 0 100 points_box - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert points to box");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1422 ( box_add PGUID 12 f t t t 2 f 603 "603 600" 100 0 0 100 box_add - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("add point to box (translate)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1423 ( box_sub PGUID 12 f t t t 2 f 603 "603 600" 100 0 0 100 box_sub - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("subtract point from box (translate)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1424 ( box_mul PGUID 12 f t t t 2 f 603 "603 600" 100 0 0 100 box_mul - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("multiply box by point (scale)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1425 ( box_div PGUID 12 f t t t 2 f 603 "603 600" 100 0 0 100 box_div - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("divide box by point (scale)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1426 ( path_contain_pt PGUID 14 f t t t 2 f 16 "602 600" 100 0 0 100 "select on_ppath($2, $1)" - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("path contains point?");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1428 ( poly_contain_pt PGUID 12 f t t t 2 f 16 "604 600" 100 0 0 100 poly_contain_pt - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("polygon contains point?");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1429 ( pt_contained_poly PGUID 12 f t t t 2 f 16 "600 604" 100 0 0 100 pt_contained_poly - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("point contained by polygon?");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1430 ( isclosed PGUID 12 f t t t 1 f 16 "602" 100 0 0 100 path_isclosed - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("path closed?");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1431 ( isopen PGUID 12 f t t t 1 f 16 "602" 100 0 0 100 path_isopen - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("path open?");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1432 ( path_npoints PGUID 12 f t t t 1 f 23 "602" 100 0 0 100 path_npoints - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("# points in path");
|
|
|
|
|
|
|
|
/* pclose and popen might better be named close and open, but that crashes initdb.
|
|
|
|
* - thomas 97/04/20
|
|
|
|
*/
|
|
|
|
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1433 ( pclose PGUID 12 f t t t 1 f 602 "602" 100 0 0 100 path_close - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("close path");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1434 ( popen PGUID 12 f t t t 1 f 602 "602" 100 0 0 100 path_open - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("open path");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1435 ( path_add PGUID 12 f t t t 2 f 602 "602 602" 100 0 0 100 path_add - ));
|
|
|
|
DESCR("concatenate open paths");
|
|
|
|
DATA(insert OID = 1436 ( path_add_pt PGUID 12 f t t t 2 f 602 "602 600" 100 0 0 100 path_add_pt - ));
|
|
|
|
DESCR("add (translate path)");
|
|
|
|
DATA(insert OID = 1437 ( path_sub_pt PGUID 12 f t t t 2 f 602 "602 600" 100 0 0 100 path_sub_pt - ));
|
|
|
|
DESCR("subtract (translate path)");
|
|
|
|
DATA(insert OID = 1438 ( path_mul_pt PGUID 12 f t t t 2 f 602 "602 600" 100 0 0 100 path_mul_pt - ));
|
|
|
|
DESCR("multiply (rotate/scale path)");
|
|
|
|
DATA(insert OID = 1439 ( path_div_pt PGUID 12 f t t t 2 f 602 "602 600" 100 0 0 100 path_div_pt - ));
|
|
|
|
DESCR("divide (rotate/scale path)");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1440 ( point PGUID 12 f t t t 2 f 600 "701 701" 100 0 0 100 construct_point - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert x, y to point");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1441 ( point_add PGUID 12 f t t t 2 f 600 "600 600" 100 0 0 100 point_add - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("add points (translate)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1442 ( point_sub PGUID 12 f t t t 2 f 600 "600 600" 100 0 0 100 point_sub - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("subtract points (translate)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1443 ( point_mul PGUID 12 f t t t 2 f 600 "600 600" 100 0 0 100 point_mul - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("multiply points (scale/rotate)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1444 ( point_div PGUID 12 f t t t 2 f 600 "600 600" 100 0 0 100 point_div - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("divide points (scale/rotate)");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1445 ( poly_npoints PGUID 12 f t t t 1 f 23 "604" 100 0 0 100 poly_npoints - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("number of points in polygon");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1446 ( box PGUID 12 f t t t 1 f 603 "604" 100 0 0 100 poly_box - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert polygon to bounding box");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1447 ( path PGUID 12 f t t t 1 f 602 "604" 100 0 0 100 poly_path - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert polygon to path");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1448 ( polygon PGUID 12 f t t t 1 f 604 "603" 100 0 0 100 box_poly - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert box to polygon");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1449 ( polygon PGUID 12 f t t t 1 f 604 "602" 100 0 0 100 path_poly - ));
|
1997-11-30 23:52:24 +01:00
|
|
|
DESCR("convert path to polygon");
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1450 ( circle_in PGUID 12 f t t t 1 f 718 "0" 100 0 0 100 circle_in - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1451 ( circle_out PGUID 12 f t t t 1 f 23 "718" 100 0 0 100 circle_out - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1452 ( circle_same PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_same - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("same as");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1453 ( circle_contain PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_contain - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("contains");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1454 ( circle_left PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_left - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is left of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1455 ( circle_overleft PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_overleft - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps, but does not extend to right of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1456 ( circle_overright PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_overright - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1457 ( circle_right PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_right - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("is right of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1458 ( circle_contained PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_contained - ));
|
1997-11-13 04:23:18 +01:00
|
|
|
DESCR("");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1459 ( circle_overlap PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_overlap - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("overlaps");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1460 ( circle_below PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_below - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is below");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1461 ( circle_above PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_above - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("is above");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1462 ( circle_eq PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_eq - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1463 ( circle_ne PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_ne - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("not equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1464 ( circle_lt PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_lt - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("less-than by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1465 ( circle_gt PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_gt - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("greater-than by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1466 ( circle_le PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_le - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("less-than-or-equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1467 ( circle_ge PGUID 12 f t t t 2 f 16 "718 718" 100 0 0 100 circle_ge - ));
|
2000-07-30 22:44:02 +02:00
|
|
|
DESCR("greater-than-or-equal by area");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1468 ( area PGUID 12 f t t t 1 f 701 "718" 100 0 0 100 circle_area - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("area of circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1469 ( diameter PGUID 12 f t t t 1 f 701 "718" 100 0 0 100 circle_diameter - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("diameter of circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1470 ( radius PGUID 12 f t t t 1 f 701 "718" 100 0 0 100 circle_radius - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("radius of circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1471 ( circle_distance PGUID 12 f t t t 2 f 701 "718 718" 100 0 0 100 circle_distance - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("distance between");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1472 ( circle_center PGUID 12 f t t t 1 f 600 "718" 100 0 0 100 circle_center - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("center of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1473 ( circle PGUID 12 f t t t 2 f 718 "600 701" 100 0 0 100 cr_circle - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert point and radius to circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1474 ( circle PGUID 12 f t t t 1 f 718 "604" 100 0 0 100 poly_circle - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert polygon to circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1475 ( polygon PGUID 12 f t t t 2 f 604 "23 718" 100 0 0 100 circle_poly - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert vertex count and circle to polygon");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1476 ( dist_pc PGUID 12 f t t t 2 f 701 "600 718" 100 0 0 100 dist_pc - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between point and circle");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1477 ( circle_contain_pt PGUID 12 f t t t 2 f 16 "718 600" 100 0 0 100 circle_contain_pt - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("circle contains point?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1478 ( pt_contained_circle PGUID 12 f t t t 2 f 16 "600 718" 100 0 0 100 pt_contained_circle - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("point inside circle?");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1479 ( circle PGUID 12 f t t t 1 f 718 "603" 100 0 0 100 box_circle - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert box to circle");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1480 ( box PGUID 12 f t t t 1 f 603 "718" 100 0 0 100 circle_box - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert circle to box");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1481 ( tinterval PGUID 12 f t f t 2 f 704 "702 702" 100 0 0 100 mktinterval - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("convert to tinterval");
|
1998-01-01 06:47:11 +01:00
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1482 ( lseg_ne PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_ne - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("not equal");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1483 ( lseg_lt PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_lt - ));
|
|
|
|
DESCR("less-than by length");
|
|
|
|
DATA(insert OID = 1484 ( lseg_le PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_le - ));
|
|
|
|
DESCR("less-than-or-equal by length");
|
|
|
|
DATA(insert OID = 1485 ( lseg_gt PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_gt - ));
|
|
|
|
DESCR("greater-than by length");
|
|
|
|
DATA(insert OID = 1486 ( lseg_ge PGUID 12 f t t t 2 f 16 "601 601" 100 0 0 100 lseg_ge - ));
|
|
|
|
DESCR("greater-than-or-equal by length");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1487 ( lseg_length PGUID 12 f t t t 1 f 701 "601" 100 0 0 100 lseg_length - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("distance between endpoints");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1488 ( close_ls PGUID 12 f t t t 2 f 600 "628 601" 100 0 0 100 close_ls - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point to line on line segment");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1489 ( close_lseg PGUID 12 f t t t 2 f 600 "601 601" 100 0 0 100 close_lseg - ));
|
1998-02-03 17:01:59 +01:00
|
|
|
DESCR("closest point to line segment on line segment");
|
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1490 ( line_in PGUID 12 f t t t 1 f 628 "0" 100 0 0 100 line_in - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1491 ( line_out PGUID 12 f t t t 1 f 23 "628" 100 0 0 100 line_out - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("(internal)");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1492 ( line_eq PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_eq - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines equal?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1493 ( line PGUID 12 f t t t 2 f 628 "600 600" 100 0 0 100 line_construct_pp - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("line from points");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1494 ( line_interpt PGUID 12 f t t t 2 f 600 "628 628" 100 0 0 100 line_interpt - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("intersection point");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1495 ( line_intersect PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_intersect - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines intersect?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1496 ( line_parallel PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_parallel - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines parallel?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1497 ( line_perp PGUID 12 f t t t 2 f 16 "628 628" 100 0 0 100 line_perp - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines perpendicular?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1498 ( line_vertical PGUID 12 f t t t 1 f 16 "628" 100 0 0 100 line_vertical - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines vertical?");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1499 ( line_horizontal PGUID 12 f t t t 1 f 16 "628" 100 0 0 100 line_horizontal - ));
|
1998-05-10 00:48:37 +02:00
|
|
|
DESCR("lines horizontal?");
|
|
|
|
|
|
|
|
/* OIDS 1500 - 1599 */
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1530 ( length PGUID 12 f t t t 1 f 701 "601" 100 0 0 100 lseg_length - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("distance between endpoints");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1531 ( length PGUID 12 f t t t 1 f 701 "602" 100 0 0 100 path_length - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("sum of path segments");
|
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 19:35:09 +02:00
|
|
|
|
|
|
|
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1532 ( point PGUID 12 f t t t 1 f 600 "601" 100 0 0 100 lseg_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1533 ( point PGUID 12 f t t t 1 f 600 "602" 100 0 0 100 path_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1534 ( point PGUID 12 f t t t 1 f 600 "603" 100 0 0 100 box_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1540 ( point PGUID 12 f t t t 1 f 600 "604" 100 0 0 100 poly_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-07-30 22:44:02 +02:00
|
|
|
DATA(insert OID = 1541 ( lseg PGUID 12 f t t t 1 f 601 "603" 100 0 0 100 box_diagonal - ));
|
|
|
|
DESCR("diagonal of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1542 ( center PGUID 12 f t t t 1 f 600 "603" 100 0 0 100 box_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1543 ( center PGUID 12 f t t t 1 f 600 "718" 100 0 0 100 circle_center - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("center of");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1544 ( polygon PGUID 14 f t t t 1 f 604 "718" 100 0 0 100 "select polygon(12, $1)" - ));
|
1998-12-14 00:45:22 +01:00
|
|
|
DESCR("convert circle to 12-vertex polygon");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1545 ( npoints PGUID 12 f t t t 1 f 23 "602" 100 0 0 100 path_npoints - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("# points in path");
|
2000-07-29 20:46:12 +02:00
|
|
|
DATA(insert OID = 1556 ( npoints PGUID 12 f t t t 1 f 23 "604" 100 0 0 100 poly_npoints - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("number of points in polygon");
|
2000-04-08 04:13:11 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1564 ( zpbit_in PGUID 12 f t t t 1 f 1560 "0" 100 0 0 100 zpbit_in - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1565 ( zpbit_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 zpbit_out - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("(internal)");
|
1998-07-08 16:09:00 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1569 ( like PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textlike - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("matches LIKE expression");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1570 ( notlike PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 textnlike - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("does not match LIKE expression");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1571 ( like PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 namelike - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("matches LIKE expression");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1572 ( notlike PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 namenlike - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("does not match LIKE expression");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1573 ( int8 PGUID 14 f t t t 1 f 20 "20" 100 0 0 100 "select $1" - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("convert int8 to int8 (no-op)");
|
|
|
|
|
1998-05-10 00:48:37 +02:00
|
|
|
|
2000-03-15 00:06:59 +01:00
|
|
|
/* SEQUENCEs nextval & currval functions */
|
2000-06-11 22:08:01 +02:00
|
|
|
DATA(insert OID = 1574 ( nextval PGUID 12 f t f t 1 f 23 "25" 100 0 0 100 nextval - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("sequence next value");
|
2000-06-11 22:08:01 +02:00
|
|
|
DATA(insert OID = 1575 ( currval PGUID 12 f t f t 1 f 23 "25" 100 0 0 100 currval - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("sequence current value");
|
2000-06-11 22:08:01 +02:00
|
|
|
DATA(insert OID = 1576 ( setval PGUID 12 f t f t 2 f 23 "25 23" 100 0 0 100 setval - ));
|
|
|
|
DESCR("set sequence value");
|
1998-11-17 15:36:51 +01:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1579 ( varbit_in PGUID 12 f t t t 1 f 1562 "0" 100 0 0 100 varbit_in - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("(internal)");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1580 ( varbit_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 varbit_out - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("(internal)");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1581 ( biteq PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 biteq - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1582 ( bitne PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 bitne - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("not equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1592 ( bitge PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 bitge - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("greater than or equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1593 ( bitgt PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 bitgt - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("greater than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1594 ( bitle PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 bitle - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("less than or equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1595 ( bitlt PGUID 12 f t t t 2 f 16 "1560 1560" 100 0 0 100 bitlt - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("less than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1596 ( bitcmp PGUID 12 f t t t 2 f 23 "1560 1560" 100 0 0 100 bitcmp - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("compare");
|
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1598 ( random PGUID 12 f t f t 0 f 701 "0" 100 0 0 100 drandom - ));
|
|
|
|
DESCR("random value");
|
|
|
|
DATA(insert OID = 1599 ( setseed PGUID 12 f t f t 1 f 23 "701" 100 0 0 100 setseed - ));
|
|
|
|
DESCR("set random seed");
|
2000-04-07 15:40:45 +02:00
|
|
|
|
2000-03-15 00:06:59 +01:00
|
|
|
/* OIDS 1600 - 1699 */
|
1998-05-10 00:48:37 +02:00
|
|
|
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1600 ( asin PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dasin - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("arcsine");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1601 ( acos PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dacos - ));
|
|
|
|
DESCR("arccosine");
|
|
|
|
DATA(insert OID = 1602 ( atan PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 datan - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("arctangent");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1603 ( atan2 PGUID 12 f t t t 2 f 701 "701 701" 100 0 0 100 datan2 - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("arctangent, two arguments");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1604 ( sin PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dsin - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("sine");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1605 ( cos PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dcos - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("cosine");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1606 ( tan PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dtan - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("tangent");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1607 ( cot PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 dcot - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("cotangent");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1608 ( degrees PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 degrees - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("radians to degrees");
|
2000-08-01 20:29:35 +02:00
|
|
|
DATA(insert OID = 1609 ( radians PGUID 12 f t t t 1 f 701 "701" 100 0 0 100 radians - ));
|
|
|
|
DESCR("degrees to radians");
|
|
|
|
DATA(insert OID = 1610 ( pi PGUID 12 f t t t 0 f 701 "0" 100 0 0 100 dpi - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("PI");
|
|
|
|
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1618 ( interval_mul PGUID 12 f t t t 2 f 1186 "1186 701" 100 0 0 100 interval_mul - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("multiply interval");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1619 ( varchar PGUID 12 f t t t 1 f 1043 "23" 100 0 0 100 int4_text - ));
|
1999-02-13 05:19:54 +01:00
|
|
|
DESCR("convert int4 to varchar");
|
2000-04-07 15:40:45 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1620 ( ascii PGUID 12 f t t t 1 f 23 "25" 100 0 0 100 ascii - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("convert first char to int4");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1621 ( ichar PGUID 12 f t t t 1 f 25 "23" 100 0 0 100 ichar - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("convert int4 to char");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1622 ( repeat PGUID 12 f t t t 2 f 25 "25 23" 100 0 0 100 repeat - ));
|
2000-04-07 15:40:45 +02:00
|
|
|
DESCR("replicate string int4 times");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1623 ( varchar PGUID 12 f t t t 1 f 1043 "20" 100 0 0 100 int8_text - ));
|
1999-02-13 05:19:54 +01:00
|
|
|
DESCR("convert int8 to varchar");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1624 ( mul_d_interval PGUID 12 f t t t 2 f 1186 "701 1186" 100 0 0 100 mul_d_interval - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
|
2000-09-15 20:45:31 +02:00
|
|
|
DATA(insert OID = 1633 ( texticlike PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 texticlike - ));
|
|
|
|
DESCR("matches LIKE expression, case-insensitive");
|
|
|
|
DATA(insert OID = 1634 ( texticnlike PGUID 12 f t t t 2 f 16 "25 25" 100 0 0 100 texticnlike - ));
|
|
|
|
DESCR("does not match LIKE expression, case-insensitive");
|
|
|
|
DATA(insert OID = 1635 ( nameiclike PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameiclike - ));
|
|
|
|
DESCR("matches LIKE expression, case-insensitive");
|
|
|
|
DATA(insert OID = 1636 ( nameicnlike PGUID 12 f t t t 2 f 16 "19 25" 100 0 0 100 nameicnlike - ));
|
|
|
|
DESCR("does not match LIKE expression, case-insensitive");
|
|
|
|
DATA(insert OID = 1637 ( like_escape PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 like_escape - ));
|
|
|
|
DESCR("convert match pattern to use backslash escapes");
|
2000-08-06 20:06:44 +02:00
|
|
|
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1689 ( update_pg_pwd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 update_pg_pwd - ));
|
2000-05-28 19:56:29 +02:00
|
|
|
DESCR("update pg_pwd file");
|
|
|
|
|
1997-03-04 06:32:26 +01:00
|
|
|
/* Oracle Compatibility Related Functions - By Edmund Mergl <E.Mergl@bawue.de> */
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 868 ( strpos PGUID 12 f t t t 2 f 23 "25 25" 100 0 0 100 textpos - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("find position of substring");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 870 ( lower PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 lower - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("lowercase");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 871 ( upper PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 upper - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("uppercase");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 872 ( initcap PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 initcap - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("capitalize each word");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 873 ( lpad PGUID 12 f t t t 3 f 25 "25 23 25" 100 0 0 100 lpad - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("left-pad string to length");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 874 ( rpad PGUID 12 f t t t 3 f 25 "25 23 25" 100 0 0 100 rpad - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("right-pad string to length");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 875 ( ltrim PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 ltrim - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("left-pad string to length");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 876 ( rtrim PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 rtrim - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("right-pad string to length");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 877 ( substr PGUID 12 f t t t 3 f 25 "25 23 23" 100 0 0 100 text_substr - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("return portion of string");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 878 ( translate PGUID 12 f t t t 3 f 25 "25 25 25" 100 0 0 100 translate - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("modify string by substring replacement");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 879 ( lpad PGUID 14 f t t t 2 f 25 "25 23" 100 0 0 100 "select lpad($1, $2, \' \')" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("left-pad string to length");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 880 ( rpad PGUID 14 f t t t 2 f 25 "25 23" 100 0 0 100 "select rpad($1, $2, \' \')" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("right-pad string to length");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 881 ( ltrim PGUID 14 f t t t 1 f 25 "25" 100 0 0 100 "select ltrim($1, \' \')" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("remove initial characters from string");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 882 ( rtrim PGUID 14 f t t t 1 f 25 "25" 100 0 0 100 "select rtrim($1, \' \')" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("remove trailing characters from string");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 883 ( substr PGUID 14 f t t t 2 f 25 "25 23" 100 0 0 100 "select substr($1, $2, -1)" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("return portion of string");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 884 ( btrim PGUID 12 f t t t 2 f 25 "25 25" 100 0 0 100 btrim - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("trim both ends of string");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 885 ( btrim PGUID 14 f t t t 1 f 25 "25" 100 0 0 100 "select btrim($1, \' \')" - ));
|
1997-11-24 14:43:29 +01:00
|
|
|
DESCR("trim both ends of string");
|
1997-03-04 06:32:26 +01:00
|
|
|
|
1998-07-24 05:32:46 +02:00
|
|
|
/* for multi-byte support */
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1039 ( getdatabaseencoding PGUID 12 f t f t 0 f 19 "0" 100 0 0 100 getdatabaseencoding - ));
|
2000-01-18 06:10:29 +01:00
|
|
|
DESCR("encoding name of current database");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1295 ( pg_char_to_encoding PGUID 12 f t f t 1 f 23 "19" 100 0 0 100 PG_char_to_encoding - ));
|
2000-01-18 06:10:29 +01:00
|
|
|
DESCR("convert encoding name to encoding id");
|
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1597 ( pg_encoding_to_char PGUID 12 f t f t 1 f 19 "23" 100 0 0 100 PG_encoding_to_char - ));
|
2000-01-18 06:10:29 +01:00
|
|
|
DESCR("convert encoding id to encoding name");
|
1998-04-29 14:41:29 +02:00
|
|
|
|
1998-08-24 03:38:11 +02:00
|
|
|
/* System-view support functions */
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1640 ( pg_get_ruledef PGUID 12 f t f t 1 f 25 "19" 100 0 0 100 pg_get_ruledef - ));
|
1998-08-24 03:38:11 +02:00
|
|
|
DESCR("source text of a rule");
|
2000-07-06 07:48:31 +02:00
|
|
|
DATA(insert OID = 1641 ( pg_get_viewdef PGUID 12 f t f t 1 f 25 "19" 100 0 0 100 pg_get_viewdef - ));
|
1998-08-24 03:38:11 +02:00
|
|
|
DESCR("select statement of a view");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1642 ( pg_get_userbyid PGUID 12 f t f t 1 f 19 "23" 100 0 0 100 pg_get_userbyid - ));
|
1998-10-02 18:28:04 +02:00
|
|
|
DESCR("user name by UID (with fallback)");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1643 ( pg_get_indexdef PGUID 12 f t f t 1 f 25 "26" 100 0 0 100 pg_get_indexdef - ));
|
1998-10-02 18:28:04 +02:00
|
|
|
DESCR("index description");
|
1998-08-24 03:38:11 +02:00
|
|
|
|
1999-09-30 16:54:24 +02:00
|
|
|
/* Generic referential integrity constraint triggers */
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1644 ( RI_FKey_check_ins PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_check_ins - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity FOREIGN KEY ... REFERENCES");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1645 ( RI_FKey_check_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_check_upd - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity FOREIGN KEY ... REFERENCES");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1646 ( RI_FKey_cascade_del PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_cascade_del - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON DELETE CASCADE");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1647 ( RI_FKey_cascade_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_cascade_upd - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON UPDATE CASCADE");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1648 ( RI_FKey_restrict_del PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_restrict_del - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON DELETE RESTRICT");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1649 ( RI_FKey_restrict_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_restrict_upd - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON UPDATE RESTRICT");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1650 ( RI_FKey_setnull_del PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_setnull_del - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON DELETE SET NULL");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1651 ( RI_FKey_setnull_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_setnull_upd - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON UPDATE SET NULL");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1652 ( RI_FKey_setdefault_del PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_setdefault_del - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON DELETE SET DEFAULT");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1653 ( RI_FKey_setdefault_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_setdefault_upd - ));
|
1999-09-30 16:54:24 +02:00
|
|
|
DESCR("referential integrity ON UPDATE SET DEFAULT");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1654 ( RI_FKey_noaction_del PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_noaction_del - ));
|
2000-01-06 21:47:01 +01:00
|
|
|
DESCR("referential integrity ON DELETE NO ACTION");
|
2000-05-29 03:59:17 +02:00
|
|
|
DATA(insert OID = 1655 ( RI_FKey_noaction_upd PGUID 12 f t f t 0 f 0 "" 100 0 0 100 RI_FKey_noaction_upd - ));
|
2000-01-06 21:47:01 +01:00
|
|
|
DESCR("referential integrity ON UPDATE NO ACTION");
|
1999-09-30 16:54:24 +02:00
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1666 ( varbiteq PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 biteq - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1667 ( varbitne PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 bitne - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("not equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1668 ( varbitge PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 bitge - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("greater than or equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1669 ( varbitgt PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 bitgt - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("greater than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1670 ( varbitle PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 bitle - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("less than or equal");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1671 ( varbitlt PGUID 12 f t t t 2 f 16 "1562 1562" 100 0 0 100 bitlt - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("less than");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1672 ( varbitcmp PGUID 12 f t t t 2 f 23 "1562 1562" 100 0 0 100 bitcmp - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("compare");
|
|
|
|
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1673 ( bitand PGUID 12 f t t t 2 f 1560 "1560 1560" 100 0 0 100 bitand - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise and");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1674 ( bitor PGUID 12 f t t t 2 f 1560 "1560 1560" 100 0 0 100 bitor - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise or");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1675 ( bitxor PGUID 12 f t t t 2 f 1560 "1560 1560" 100 0 0 100 bitxor - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise exclusive or");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1676 ( bitnot PGUID 12 f t t t 1 f 1560 "1560" 100 0 0 100 bitnot - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise negation");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1677 ( bitshiftleft PGUID 12 f t t t 2 f 1560 "1560 23" 100 0 0 100 bitshiftleft - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise left shift");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1678 ( bitshiftright PGUID 12 f t t t 2 f 1560 "1560 23" 100 0 0 100 bitshiftright - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise right shift");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1679 ( bitcat PGUID 12 f t t t 2 f 1560 "1560 1560" 100 0 0 100 bitcat - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise concatenation");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1680 ( bitsubstr PGUID 12 f t t t 3 f 1560 "1560 23 23" 100 0 0 100 bitsubstr - ));
|
2000-04-08 04:13:11 +02:00
|
|
|
DESCR("bitwise field");
|
2000-08-21 06:48:57 +02:00
|
|
|
DATA(insert OID = 1681 ( length PGUID 12 f t t t 1 f 23 "1560" 100 0 0 100 bitlength - ));
|
|
|
|
DESCR("bitstring length");
|
|
|
|
DATA(insert OID = 1682 ( octet_length PGUID 12 f t t t 1 f 23 "1560" 100 0 0 100 bitoctetlength - ));
|
|
|
|
DESCR("octet length");
|
|
|
|
DATA(insert OID = 1683 ( bitfromint4 PGUID 12 f t t t 1 f 1560 "23" 100 0 0 100 bitfromint4 - ));
|
|
|
|
DESCR("int4 to bitstring");
|
|
|
|
DATA(insert OID = 1684 ( bittoint4 PGUID 12 f t t t 1 f 23 "1560" 100 0 0 100 bittoint4 - ));
|
|
|
|
DESCR("bitstring to int4");
|
|
|
|
|
|
|
|
DATA(insert OID = 1685 ( bit PGUID 12 f t t t 2 f 1560 "1560 23" 100 0 0 100 zpbit - ));
|
|
|
|
DESCR("adjust bit() to typmod length");
|
|
|
|
DATA(insert OID = 1686 ( _bit PGUID 12 f t t t 2 f 1561 "1561 23" 100 0 0 100 _zpbit - ));
|
|
|
|
DESCR("adjust bit()[] to typmod length");
|
|
|
|
DATA(insert OID = 1687 ( varbit PGUID 12 f t t t 2 f 1562 "1562 23" 100 0 0 100 varbit - ));
|
|
|
|
DESCR("adjust varbit() to typmod length");
|
|
|
|
DATA(insert OID = 1688 ( _varbit PGUID 12 f t t t 2 f 1563 "1563 23" 100 0 0 100 _varbit - ));
|
|
|
|
DESCR("adjust varbit()[] to typmod length");
|
2000-04-08 04:13:11 +02:00
|
|
|
|
1998-10-03 07:41:01 +02:00
|
|
|
/* for mac type support */
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 436 ( macaddr_in PGUID 12 f t t t 1 f 829 "0" 100 0 0 100 macaddr_in - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("(internal)");
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 437 ( macaddr_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 macaddr_out - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("(internal)");
|
|
|
|
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 752 ( text PGUID 12 f t t t 1 f 25 "829" 100 0 0 100 macaddr_text - ));
|
|
|
|
DESCR("MAC address to text");
|
|
|
|
DATA(insert OID = 753 ( trunc PGUID 12 f t t t 1 f 829 "829" 100 0 0 100 macaddr_trunc - ));
|
|
|
|
DESCR("MAC manufacturer fields");
|
|
|
|
DATA(insert OID = 767 ( macaddr PGUID 12 f t t t 1 f 829 "25" 100 0 0 100 text_macaddr - ));
|
|
|
|
DESCR("text to MAC address");
|
|
|
|
|
|
|
|
DATA(insert OID = 830 ( macaddr_eq PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_eq - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 831 ( macaddr_lt PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_lt - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-than");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 832 ( macaddr_le PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_le - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 833 ( macaddr_gt PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_gt - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("greater-than");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 834 ( macaddr_ge PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_ge - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 835 ( macaddr_ne PGUID 12 f t t t 2 f 16 "829 829" 100 0 0 100 macaddr_ne - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("not equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 836 ( macaddr_cmp PGUID 12 f t t t 2 f 23 "829 829" 100 0 0 100 macaddr_cmp - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-equal-greater");
|
|
|
|
|
1998-10-21 18:06:50 +02:00
|
|
|
/* for inet type support */
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 910 ( inet_in PGUID 12 f t t t 1 f 869 "0" 100 0 0 100 inet_in - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("(internal)");
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 911 ( inet_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 inet_out - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("(internal)");
|
|
|
|
|
1998-10-21 18:06:50 +02:00
|
|
|
/* for cidr type support */
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 1267 ( cidr_in PGUID 12 f t t t 1 f 650 "0" 100 0 0 100 cidr_in - ));
|
1998-10-21 18:06:50 +02:00
|
|
|
DESCR("(internal)");
|
2000-08-04 01:07:51 +02:00
|
|
|
DATA(insert OID = 1427 ( cidr_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 cidr_out - ));
|
1998-10-22 02:35:28 +02:00
|
|
|
DESCR("(internal)");
|
1998-10-21 18:06:50 +02:00
|
|
|
|
|
|
|
/* these are used for both inet and cidr */
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 920 ( network_eq PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_eq - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 921 ( network_lt PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_lt - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-than");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 922 ( network_le PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_le - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 923 ( network_gt PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_gt - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("greater-than");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 924 ( network_ge PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_ge - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 925 ( network_ne PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_ne - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("not equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 926 ( network_cmp PGUID 12 f t t t 2 f 23 "869 869" 100 0 0 100 network_cmp - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("less-equal-greater");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 927 ( network_sub PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_sub - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("is-subnet");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 928 ( network_subeq PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_subeq - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("is-subnet-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 929 ( network_sup PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_sup - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("is-supernet");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 930 ( network_supeq PGUID 12 f t t t 2 f 16 "869 869" 100 0 0 100 network_supeq - ));
|
1998-10-03 07:41:01 +02:00
|
|
|
DESCR("is-supernet-or-equal");
|
|
|
|
|
1998-10-22 15:51:07 +02:00
|
|
|
/* inet/cidr versions */
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 696 ( netmask PGUID 12 f t t t 1 f 25 "869" 100 0 0 100 network_netmask - ));
|
1998-10-22 22:40:50 +02:00
|
|
|
DESCR("netmask of address");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 697 ( masklen PGUID 12 f t t t 1 f 23 "869" 100 0 0 100 network_masklen - ));
|
1998-10-22 22:40:50 +02:00
|
|
|
DESCR("netmask length");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 698 ( broadcast PGUID 12 f t t t 1 f 25 "869" 100 0 0 100 network_broadcast - ));
|
1998-10-22 22:40:50 +02:00
|
|
|
DESCR("broadcast address");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 699 ( host PGUID 12 f t t t 1 f 25 "869" 100 0 0 100 network_host - ));
|
1998-10-22 22:40:50 +02:00
|
|
|
DESCR("host address");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 683 ( network PGUID 12 f t t t 1 f 25 "869" 100 0 0 100 network_network - ));
|
1998-10-22 22:40:50 +02:00
|
|
|
DESCR("network address");
|
1998-10-12 06:07:53 +02:00
|
|
|
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 1691 ( boolle PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 boolle - ));
|
2000-02-10 20:51:52 +01:00
|
|
|
DESCR("less-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 1692 ( boolge PGUID 12 f t t t 2 f 16 "16 16" 100 0 0 100 boolge - ));
|
2000-02-10 20:51:52 +01:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 1693 ( btboolcmp PGUID 12 f t t t 2 f 23 "16 16" 100 0 0 100 btboolcmp - ));
|
2000-02-10 20:51:52 +01:00
|
|
|
DESCR("btree less-equal-greater");
|
|
|
|
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 1696 ( timetz_hash PGUID 12 f t t t 1 f 23 "1266" 100 0 0 100 timetz_hash - ));
|
2000-06-19 05:55:01 +02:00
|
|
|
DESCR("hash");
|
2000-08-23 08:04:49 +02:00
|
|
|
DATA(insert OID = 1697 ( interval_hash PGUID 12 f t t t 1 f 23 "1186" 100 0 0 100 interval_hash - ));
|
2000-06-19 05:55:01 +02:00
|
|
|
DESCR("hash");
|
|
|
|
|
|
|
|
|
1998-12-30 20:56:35 +01:00
|
|
|
/* OID's 1700 - 1799 NUMERIC data type */
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1701 ( numeric_in PGUID 12 f t t t 3 f 1700 "0 26 23" 100 0 0 100 numeric_in - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1702 ( numeric_out PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 numeric_out - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1703 ( numeric PGUID 12 f t t t 2 f 1700 "1700 23" 100 0 0 100 numeric - ));
|
|
|
|
DESCR("adjust numeric to typmod precision/scale");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1704 ( numeric_abs PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_abs - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("absolute value");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1705 ( abs PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_abs - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("absolute value");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1706 ( sign PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_sign - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("sign of value");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1707 ( round PGUID 12 f t t t 2 f 1700 "1700 23" 100 0 0 100 numeric_round - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("value rounded to 'scale'");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1708 ( round PGUID 14 f t t t 1 f 1700 "1700" 100 0 0 100 "select numeric_round($1,0)" - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("value rounded to 'scale' of zero");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1709 ( trunc PGUID 12 f t t t 2 f 1700 "1700 23" 100 0 0 100 numeric_trunc - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("value truncated to 'scale'");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1710 ( trunc PGUID 14 f t t t 1 f 1700 "1700" 100 0 0 100 "select trunc($1,0)" - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("value truncated to 'scale' of zero");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1711 ( ceil PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_ceil - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("smallest integer >= value");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1712 ( floor PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_floor - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("largest integer <= value");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1718 ( numeric_eq PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_eq - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1719 ( numeric_ne PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_ne - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("not equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1720 ( numeric_gt PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_gt - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("greater-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1721 ( numeric_ge PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_ge - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("greater-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1722 ( numeric_lt PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_lt - ));
|
2000-08-06 20:06:44 +02:00
|
|
|
DESCR("less-than");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1723 ( numeric_le PGUID 12 f t t t 2 f 16 "1700 1700" 100 0 0 100 numeric_le - ));
|
2000-08-06 20:06:44 +02:00
|
|
|
DESCR("less-than-or-equal");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1724 ( numeric_add PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_add - ));
|
2000-08-01 20:29:35 +02:00
|
|
|
DESCR("add");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1725 ( numeric_sub PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_sub - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("subtract");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1726 ( numeric_mul PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_mul - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("multiply");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1727 ( numeric_div PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_div - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("divide");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1728 ( mod PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_mod - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("modulus");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1729 ( numeric_mod PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_mod - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("modulus");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1730 ( sqrt PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_sqrt - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("square root");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1731 ( numeric_sqrt PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_sqrt - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("square root");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1732 ( exp PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_exp - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("e raised to the power of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1733 ( numeric_exp PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_exp - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("e raised to the power of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1734 ( ln PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_ln - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("natural logarithm of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1735 ( numeric_ln PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_ln - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("natural logarithm of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1736 ( log PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_log - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("logarithm base m of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1737 ( numeric_log PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_log - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("logarithm base m of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1738 ( pow PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_power - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("m raised to the power of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1739 ( numeric_power PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_power - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("m raised to the power of n");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1740 ( numeric PGUID 12 f t t t 1 f 1700 "23" 100 0 0 100 int4_numeric - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 1741 ( log PGUID 14 f t t t 1 f 1700 "1700" 100 0 0 100 "select log(10, $1)" - ));
|
2000-03-19 02:12:18 +01:00
|
|
|
DESCR("logarithm base 10 of n");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1742 ( numeric PGUID 12 f t t t 1 f 1700 "700" 100 0 0 100 float4_numeric - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1743 ( numeric PGUID 12 f t t t 1 f 1700 "701" 100 0 0 100 float8_numeric - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1744 ( int4 PGUID 12 f t t t 1 f 23 "1700" 100 0 0 100 numeric_int4 - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1745 ( float4 PGUID 12 f t t t 1 f 700 "1700" 100 0 0 100 numeric_float4 - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1746 ( float8 PGUID 12 f t t t 1 f 701 "1700" 100 0 0 100 numeric_float8 - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1764 ( numeric_inc PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_inc - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("increment by one");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1766 ( numeric_smaller PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_smaller - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("smaller of two numbers");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1767 ( numeric_larger PGUID 12 f t t t 2 f 1700 "1700 1700" 100 0 0 100 numeric_larger - ));
|
1998-12-30 20:56:35 +01:00
|
|
|
DESCR("larger of two numbers");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1769 ( numeric_cmp PGUID 12 f t t t 2 f 23 "1700 1700" 100 0 0 100 numeric_cmp - ));
|
1999-09-29 23:13:31 +02:00
|
|
|
DESCR("compare two numbers");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1771 ( numeric_uminus PGUID 12 f t t t 1 f 1700 "1700" 100 0 0 100 numeric_uminus - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("negate");
|
2000-07-29 05:26:51 +02:00
|
|
|
DATA(insert OID = 1779 ( int8 PGUID 12 f t t t 1 f 20 "1700" 100 0 0 100 numeric_int8 - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("(internal)");
|
2000-07-17 05:05:41 +02:00
|
|
|
DATA(insert OID = 1781 ( numeric PGUID 12 f t t t 1 f 1700 "20" 100 0 0 100 int8_numeric - ));
|
2000-02-24 03:05:30 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1782 ( numeric PGUID 12 f t t t 1 f 1700 "21" 100 0 0 100 int2_numeric - ));
|
2000-02-27 13:02:34 +01:00
|
|
|
DESCR("(internal)");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1783 ( int2 PGUID 12 f t t t 1 f 21 "1700" 100 0 0 100 numeric_int2 - ));
|
2000-02-27 13:02:34 +01:00
|
|
|
DESCR("(internal)");
|
|
|
|
|
as attache of this mail is patch (to the main tree) with to_char's
family functions. Contain:
conversion from a datetype to formatted text:
to_char( datetime, text)
to_char( timestamp, text)
to_char( int4, text)
to_char( int8, text)
to_char( float4, text)
to_char( float8, text)
to_char( numeric, text)
vice versa:
to_date ( text, text)
to_datetime ( text, text)
to_timestamp ( text, text)
to_number ( text, text) (convert to numeric)
PostgreSQL to_char is very compatible with Oracle's to_char(), but not
total exactly (now). Small differentions are in number formating. It will
fix in next to_char() version.
! If will this patch aplly to the main tree, must be delete the current
to_char version in contrib (directory "dateformat" and note in contrib's
README), this patch not erase it (sorry Bruce).
The patch patching files:
doc/src/sgml/func.sgml
^^^^^^^^
Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?
Thomas, it is right? SGML is not my primary lang and compile
the current PG docs tree is very happy job (hard variables setting in
docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/.... :-)
What add any definition to global configure.in and set Makefiles in docs
tree via ./configure?
src/backend/utils/adt/Makefile
src/backend/utils/adt/formatting.c
src/include/catalog/pg_proc.h
src/include/utils/formatting.h
Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
2000-01-26 00:53:56 +01:00
|
|
|
/* formatting */
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1770 ( to_char PGUID 12 f t f t 2 f 25 "1184 25" 100 0 0 100 timestamp_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format timestamp to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1772 ( to_char PGUID 12 f t f t 2 f 25 "1700 25" 100 0 0 100 numeric_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format numeric to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1773 ( to_char PGUID 12 f t f t 2 f 25 "23 25" 100 0 0 100 int4_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format int4 to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1774 ( to_char PGUID 12 f t f t 2 f 25 "20 25" 100 0 0 100 int8_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format int8 to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1775 ( to_char PGUID 12 f t f t 2 f 25 "700 25" 100 0 0 100 float4_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format float4 to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1776 ( to_char PGUID 12 f t f t 2 f 25 "701 25" 100 0 0 100 float8_to_char - ));
|
2000-03-15 00:06:59 +01:00
|
|
|
DESCR("format float8 to text");
|
2000-06-13 09:35:40 +02:00
|
|
|
DATA(insert OID = 1777 ( to_number PGUID 12 f t f t 2 f 1700 "25 25" 100 0 0 100 numeric_to_number - ));
|
as attache of this mail is patch (to the main tree) with to_char's
family functions. Contain:
conversion from a datetype to formatted text:
to_char( datetime, text)
to_char( timestamp, text)
to_char( int4, text)
to_char( int8, text)
to_char( float4, text)
to_char( float8, text)
to_char( numeric, text)
vice versa:
to_date ( text, text)
to_datetime ( text, text)
to_timestamp ( text, text)
to_number ( text, text) (convert to numeric)
PostgreSQL to_char is very compatible with Oracle's to_char(), but not
total exactly (now). Small differentions are in number formating. It will
fix in next to_char() version.
! If will this patch aplly to the main tree, must be delete the current
to_char version in contrib (directory "dateformat" and note in contrib's
README), this patch not erase it (sorry Bruce).
The patch patching files:
doc/src/sgml/func.sgml
^^^^^^^^
Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?
Thomas, it is right? SGML is not my primary lang and compile
the current PG docs tree is very happy job (hard variables setting in
docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/.... :-)
What add any definition to global configure.in and set Makefiles in docs
tree via ./configure?
src/backend/utils/adt/Makefile
src/backend/utils/adt/formatting.c
src/include/catalog/pg_proc.h
src/include/utils/formatting.h
Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
2000-01-26 00:53:56 +01:00
|
|
|
DESCR("convert text to numeric");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1778 ( to_timestamp PGUID 12 f t f t 2 f 1184 "25 25" 100 0 0 100 to_timestamp - ));
|
Implement "date/time grand unification".
Transform datetime and timespan into timestamp and interval.
Deprecate datetime and timespan, though translate to new types in gram.y.
Transform all datetime and timespan catalog entries into new types.
Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
routines for all date/time types.
date.{h,c} now deals with date, time types.
timestamp.{h,c} now deals with timestamp, interval types.
nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
2000-02-16 18:26:26 +01:00
|
|
|
DESCR("convert text to timestamp");
|
2000-06-09 03:11:16 +02:00
|
|
|
DATA(insert OID = 1780 ( to_date PGUID 12 f t f t 2 f 1082 "25 25" 100 0 0 100 to_date - ));
|
as attache of this mail is patch (to the main tree) with to_char's
family functions. Contain:
conversion from a datetype to formatted text:
to_char( datetime, text)
to_char( timestamp, text)
to_char( int4, text)
to_char( int8, text)
to_char( float4, text)
to_char( float8, text)
to_char( numeric, text)
vice versa:
to_date ( text, text)
to_datetime ( text, text)
to_timestamp ( text, text)
to_number ( text, text) (convert to numeric)
PostgreSQL to_char is very compatible with Oracle's to_char(), but not
total exactly (now). Small differentions are in number formating. It will
fix in next to_char() version.
! If will this patch aplly to the main tree, must be delete the current
to_char version in contrib (directory "dateformat" and note in contrib's
README), this patch not erase it (sorry Bruce).
The patch patching files:
doc/src/sgml/func.sgml
^^^^^^^^
Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?
Thomas, it is right? SGML is not my primary lang and compile
the current PG docs tree is very happy job (hard variables setting in
docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/.... :-)
What add any definition to global configure.in and set Makefiles in docs
tree via ./configure?
src/backend/utils/adt/Makefile
src/backend/utils/adt/formatting.c
src/include/catalog/pg_proc.h
src/include/utils/formatting.h
Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
2000-01-26 00:53:56 +01:00
|
|
|
DESCR("convert text to date");
|
|
|
|
|
2000-09-05 22:25:14 +02:00
|
|
|
DATA(insert OID = 1282 ( quote_ident PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 quote_ident - ));
|
|
|
|
DESCR("quote an identifier for usage in a querystring");
|
|
|
|
DATA(insert OID = 1283 ( quote_literal PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 quote_literal - ));
|
|
|
|
DESCR("quote a literal for usage in a querystring");
|
|
|
|
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1798 ( oidin PGUID 12 f t t t 1 f 26 "0" 100 0 0 100 oidin - ));
|
|
|
|
DESCR("(internal)");
|
|
|
|
DATA(insert OID = 1799 ( oidout PGUID 12 f t t t 1 f 23 "0" 100 0 0 100 oidout - ));
|
|
|
|
DESCR("(internal)");
|
|
|
|
|
2000-04-16 06:41:03 +02:00
|
|
|
/* Selectivity estimators for LIKE and related operators */
|
2000-09-15 20:45:31 +02:00
|
|
|
DATA(insert OID = 1814 ( iclikesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 iclikesel - ));
|
|
|
|
DESCR("restriction selectivity of ILIKE");
|
|
|
|
DATA(insert OID = 1815 ( icnlikesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 icnlikesel - ));
|
|
|
|
DESCR("restriction selectivity of NOT ILIKE");
|
|
|
|
DATA(insert OID = 1816 ( iclikejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 iclikejoinsel - ));
|
|
|
|
DESCR("join selectivity of ILIKE");
|
|
|
|
DATA(insert OID = 1817 ( icnlikejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 icnlikejoinsel - ));
|
|
|
|
DESCR("join selectivity of NOT ILIKE");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1818 ( regexeqsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 regexeqsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of regex match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1819 ( likesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 likesel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of LIKE");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1820 ( icregexeqsel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 icregexeqsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of case-insensitive regex match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1821 ( regexnesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 regexnesel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of regex non-match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1822 ( nlikesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 nlikesel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of NOT LIKE");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1823 ( icregexnesel PGUID 12 f t f t 5 f 701 "26 26 21 0 23" 100 0 0 100 icregexnesel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("restriction selectivity of case-insensitive regex non-match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1824 ( regexeqjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 regexeqjoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of regex match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1825 ( likejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 likejoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of LIKE");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1826 ( icregexeqjoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 icregexeqjoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of case-insensitive regex match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1827 ( regexnejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 regexnejoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of regex non-match");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1828 ( nlikejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 nlikejoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of NOT LIKE");
|
2000-06-05 09:29:25 +02:00
|
|
|
DATA(insert OID = 1829 ( icregexnejoinsel PGUID 12 f t f t 5 f 701 "26 26 21 26 21" 100 0 0 100 icregexnejoinsel - ));
|
2000-04-16 06:41:03 +02:00
|
|
|
DESCR("join selectivity of case-insensitive regex non-match");
|
|
|
|
|
2000-07-17 05:05:41 +02:00
|
|
|
/* Aggregate-related functions */
|
|
|
|
DATA(insert OID = 1830 ( float8_avg PGUID 12 f t t t 1 f 701 "1022" 100 0 0 100 float8_avg - ));
|
|
|
|
DESCR("AVG aggregate final function");
|
|
|
|
DATA(insert OID = 1831 ( float8_variance PGUID 12 f t t t 1 f 701 "1022" 100 0 0 100 float8_variance - ));
|
|
|
|
DESCR("VARIANCE aggregate final function");
|
|
|
|
DATA(insert OID = 1832 ( float8_stddev PGUID 12 f t t t 1 f 701 "1022" 100 0 0 100 float8_stddev - ));
|
|
|
|
DESCR("STDDEV aggregate final function");
|
|
|
|
DATA(insert OID = 1833 ( numeric_accum PGUID 12 f t t t 2 f 1231 "1231 1700" 100 0 0 100 numeric_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
|
|
|
DATA(insert OID = 1834 ( int2_accum PGUID 12 f t t t 2 f 1231 "1231 21" 100 0 0 100 int2_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
|
|
|
DATA(insert OID = 1835 ( int4_accum PGUID 12 f t t t 2 f 1231 "1231 23" 100 0 0 100 int4_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
|
|
|
DATA(insert OID = 1836 ( int8_accum PGUID 12 f t t t 2 f 1231 "1231 20" 100 0 0 100 int8_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
|
|
|
DATA(insert OID = 1837 ( numeric_avg PGUID 12 f t t t 1 f 1700 "1231" 100 0 0 100 numeric_avg - ));
|
|
|
|
DESCR("AVG aggregate final function");
|
|
|
|
DATA(insert OID = 1838 ( numeric_variance PGUID 12 f t t t 1 f 1700 "1231" 100 0 0 100 numeric_variance - ));
|
|
|
|
DESCR("VARIANCE aggregate final function");
|
|
|
|
DATA(insert OID = 1839 ( numeric_stddev PGUID 12 f t t t 1 f 1700 "1231" 100 0 0 100 numeric_stddev - ));
|
|
|
|
DESCR("STDDEV aggregate final function");
|
|
|
|
DATA(insert OID = 1840 ( int2_sum PGUID 12 f t t f 2 f 1700 "1700 21" 100 0 0 100 int2_sum - ));
|
|
|
|
DESCR("SUM(int2) transition function");
|
|
|
|
DATA(insert OID = 1841 ( int4_sum PGUID 12 f t t f 2 f 1700 "1700 23" 100 0 0 100 int4_sum - ));
|
|
|
|
DESCR("SUM(int4) transition function");
|
|
|
|
DATA(insert OID = 1842 ( int8_sum PGUID 12 f t t f 2 f 1700 "1700 20" 100 0 0 100 int8_sum - ));
|
|
|
|
DESCR("SUM(int8) transition function");
|
|
|
|
DATA(insert OID = 1843 ( interval_accum PGUID 12 f t t t 2 f 1187 "1187 1186" 100 0 0 100 interval_accum - ));
|
|
|
|
DESCR("aggregate transition function");
|
|
|
|
DATA(insert OID = 1844 ( interval_avg PGUID 12 f t t t 1 f 1186 "1187" 100 0 0 100 interval_avg - ));
|
|
|
|
DESCR("AVG aggregate final function");
|
|
|
|
|
2000-08-05 16:59:29 +02:00
|
|
|
/* To ASCII conversion */
|
|
|
|
DATA(insert OID = 1845 ( to_ascii PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 to_ascii_default - ));
|
|
|
|
DESCR("encode text from DB encoding to ASCII text");
|
|
|
|
DATA(insert OID = 1846 ( to_ascii PGUID 12 f t t t 2 f 25 "25 23" 100 0 0 100 to_ascii_enc - ));
|
|
|
|
DESCR("encode text from encoding to ASCII text");
|
|
|
|
DATA(insert OID = 1847 ( to_ascii PGUID 12 f t t t 2 f 25 "25 19" 100 0 0 100 to_ascii_encname - ));
|
|
|
|
DESCR("encode text from encoding to ASCII text");
|
|
|
|
|
2000-07-28 07:07:49 +02:00
|
|
|
DATA(insert OID = 1850 ( int28eq PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28eq - ));
|
|
|
|
DESCR("equal");
|
|
|
|
DATA(insert OID = 1851 ( int28ne PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28ne - ));
|
|
|
|
DESCR("not equal");
|
|
|
|
DATA(insert OID = 1852 ( int28lt PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28lt - ));
|
|
|
|
DESCR("less-than");
|
|
|
|
DATA(insert OID = 1853 ( int28gt PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28gt - ));
|
|
|
|
DESCR("greater-than");
|
|
|
|
DATA(insert OID = 1854 ( int28le PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28le - ));
|
|
|
|
DESCR("less-than-or-equal");
|
|
|
|
DATA(insert OID = 1855 ( int28ge PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28ge - ));
|
|
|
|
DESCR("greater-than-or-equal");
|
|
|
|
|
|
|
|
DATA(insert OID = 1856 ( int82eq PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82eq - ));
|
|
|
|
DESCR("equal");
|
|
|
|
DATA(insert OID = 1857 ( int82ne PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82ne - ));
|
|
|
|
DESCR("not equal");
|
|
|
|
DATA(insert OID = 1858 ( int82lt PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82lt - ));
|
|
|
|
DESCR("less-than");
|
|
|
|
DATA(insert OID = 1859 ( int82gt PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82gt - ));
|
|
|
|
DESCR("greater-than");
|
|
|
|
DATA(insert OID = 1860 ( int82le PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82le - ));
|
|
|
|
DESCR("less-than-or-equal");
|
|
|
|
DATA(insert OID = 1861 ( int82ge PGUID 12 f t t t 2 f 16 "20 21" 100 0 0 100 int82ge - ));
|
|
|
|
DESCR("greater-than-or-equal");
|
|
|
|
|
1998-12-30 20:56:35 +01:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
/*
|
|
|
|
* prototypes for functions pg_proc.c
|
1996-08-28 03:59:28 +02:00
|
|
|
*/
|
1998-09-01 06:40:42 +02:00
|
|
|
extern Oid ProcedureCreate(char *procedureName,
|
1997-09-07 07:04:48 +02:00
|
|
|
bool returnsSet,
|
|
|
|
char *returnTypeName,
|
|
|
|
char *languageName,
|
|
|
|
char *prosrc,
|
|
|
|
char *probin,
|
|
|
|
bool trusted,
|
2000-05-28 19:56:29 +02:00
|
|
|
bool canCache,
|
|
|
|
bool isStrict,
|
1997-09-07 07:04:48 +02:00
|
|
|
int32 byte_pct,
|
|
|
|
int32 perbyte_cpu,
|
|
|
|
int32 percall_cpu,
|
|
|
|
int32 outin_ratio,
|
1997-09-08 23:56:23 +02:00
|
|
|
List *argList,
|
1997-09-07 07:04:48 +02:00
|
|
|
CommandDest dest);
|
|
|
|
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_PROC_H */
|