1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* builtins.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* Declarations for operations on built-in types.
|
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-07-09 23:30:21 +02:00
|
|
|
* $Id: builtins.h,v 1.123 2000/07/09 21:30:21 petere Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef BUILTINS_H
|
|
|
|
#define BUILTINS_H
|
|
|
|
|
2000-01-23 00:50:30 +01:00
|
|
|
#include "nodes/relation.h" /* for amcostestimate parameters */
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "storage/itemptr.h"
|
|
|
|
#include "utils/inet.h"
|
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
|
|
|
#include "utils/geo_decls.h"
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "utils/numeric.h"
|
2000-02-27 13:02:34 +01:00
|
|
|
#include "utils/lztext.h"
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/*
|
1997-09-07 07:04:48 +02:00
|
|
|
* Defined in adt/
|
1996-08-28 03:59:28 +02:00
|
|
|
*/
|
|
|
|
/* bool.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum boolin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boolout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum booleq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boolne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boollt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boolgt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boolle(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum boolge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum istrue(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum isfalse(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum isnottrue(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum isnotfalse(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* char.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum charin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum chareq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charlt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charle(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum chargt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charpl(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charmi(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum charmul(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum chardiv(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_char(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum char_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum cidin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum cidout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum cideq(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* int.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum int2in(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2out(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2vectorin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2vectorout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2vectoreq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int44in(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int44out(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4in(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4out(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum i2toi4(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum i4toi2(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_int2(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_int4(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4eq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4ne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4lt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4le(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4gt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4ge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2eq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2ne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2lt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2le(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2gt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2ge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24eq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24ne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24lt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24le(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24gt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24ge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42eq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42ne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42lt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42le(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42gt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42ge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4um(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4pl(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4mi(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4mul(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4div(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4abs(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4inc(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2um(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2pl(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2mi(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2mul(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2div(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2abs(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2inc(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24pl(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24mi(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24mul(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24div(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42pl(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42mi(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42mul(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42div(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4mod(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2mod(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int24mod(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int42mod(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4fac(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2fac(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2larger(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int2smaller(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4larger(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4smaller(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* name.c */
|
2000-01-22 15:20:56 +01:00
|
|
|
extern NameData *namein(const char *s);
|
|
|
|
extern char *nameout(const NameData *s);
|
|
|
|
extern bool nameeq(const NameData *arg1, const NameData *arg2);
|
|
|
|
extern bool namene(const NameData *arg1, const NameData *arg2);
|
|
|
|
extern bool namelt(const NameData *arg1, const NameData *arg2);
|
|
|
|
extern bool namele(const NameData *arg1, const NameData *arg2);
|
|
|
|
extern bool namegt(const NameData *arg1, const NameData *arg2);
|
|
|
|
extern bool namege(const NameData *arg1, const NameData *arg2);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern int namecpy(Name n1, Name n2);
|
2000-01-22 15:20:56 +01:00
|
|
|
extern int namestrcpy(Name name, const char *str);
|
|
|
|
extern int namestrcmp(Name name, const char *str);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* numutils.c */
|
|
|
|
/* XXX hack. HP-UX has a ltoa (with different arguments) already. */
|
1998-02-02 04:11:37 +01:00
|
|
|
#ifdef __hpux
|
1996-08-28 03:59:28 +02:00
|
|
|
#define ltoa pg_ltoa
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* hpux */
|
1997-09-08 04:41:22 +02:00
|
|
|
extern int32 pg_atoi(char *s, int size, int c);
|
2000-04-12 19:17:23 +02:00
|
|
|
|
1999-12-16 02:25:23 +01:00
|
|
|
/* XXX hack. QNX has itoa and ltoa (with different arguments) already. */
|
|
|
|
#ifdef __QNX__
|
|
|
|
#define itoa pg_itoa
|
|
|
|
#define ltoa pg_ltoa
|
2000-04-12 19:17:23 +02:00
|
|
|
#endif /* QNX */
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void itoa(int i, char *a);
|
|
|
|
extern void ltoa(int32 l, char *a);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/*
|
1997-09-07 07:04:48 +02:00
|
|
|
* Per-opclass comparison functions for new btrees. These are
|
2000-06-19 05:55:01 +02:00
|
|
|
* stored in pg_amproc and defined in access/nbtree/nbtcompare.c
|
1996-08-28 03:59:28 +02:00
|
|
|
*/
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum btboolcmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btint2cmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btint4cmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btint8cmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btfloat4cmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btfloat8cmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btoidcmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btoidvectorcmp(PG_FUNCTION_ARGS);
|
2000-06-09 03:11:16 +02:00
|
|
|
extern Datum btabstimecmp(PG_FUNCTION_ARGS);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum btcharcmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum btnamecmp(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum bttextcmp(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* support routines for the rtree access method, by opclass */
|
1997-09-08 22:59:27 +02:00
|
|
|
extern BOX *rt_box_union(BOX *a, BOX *b);
|
|
|
|
extern BOX *rt_box_inter(BOX *a, BOX *b);
|
|
|
|
extern void rt_box_size(BOX *a, float *size);
|
|
|
|
extern void rt_bigbox_size(BOX *a, float *size);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum rt_poly_size(PG_FUNCTION_ARGS);
|
1997-09-08 23:56:23 +02:00
|
|
|
extern POLYGON *rt_poly_union(POLYGON *a, POLYGON *b);
|
|
|
|
extern POLYGON *rt_poly_inter(POLYGON *a, POLYGON *b);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* arrayfuncs.c */
|
|
|
|
|
|
|
|
/* filename.c */
|
1997-09-08 04:41:22 +02:00
|
|
|
extern char *filename_in(char *file);
|
|
|
|
extern char *filename_out(char *s);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* float.c */
|
1997-09-08 04:41:22 +02:00
|
|
|
extern float32 float4in(char *num);
|
|
|
|
extern char *float4out(float32 num);
|
|
|
|
extern float64 float8in(char *num);
|
|
|
|
extern char *float8out(float64 num);
|
|
|
|
extern float32 float4abs(float32 arg1);
|
|
|
|
extern float32 float4um(float32 arg1);
|
|
|
|
extern float32 float4larger(float32 arg1, float32 arg2);
|
|
|
|
extern float32 float4smaller(float32 arg1, float32 arg2);
|
|
|
|
extern float64 float8abs(float64 arg1);
|
|
|
|
extern float64 float8um(float64 arg1);
|
|
|
|
extern float64 float8larger(float64 arg1, float64 arg2);
|
|
|
|
extern float64 float8smaller(float64 arg1, float64 arg2);
|
|
|
|
extern float32 float4pl(float32 arg1, float32 arg2);
|
|
|
|
extern float32 float4mi(float32 arg1, float32 arg2);
|
|
|
|
extern float32 float4mul(float32 arg1, float32 arg2);
|
|
|
|
extern float32 float4div(float32 arg1, float32 arg2);
|
|
|
|
extern float32 float4inc(float32 arg1);
|
|
|
|
extern float64 float8pl(float64 arg1, float64 arg2);
|
|
|
|
extern float64 float8mi(float64 arg1, float64 arg2);
|
|
|
|
extern float64 float8mul(float64 arg1, float64 arg2);
|
|
|
|
extern float64 float8div(float64 arg1, float64 arg2);
|
|
|
|
extern float64 float8inc(float64 arg1);
|
|
|
|
extern bool float4eq(float32 arg1, float32 arg2);
|
|
|
|
extern bool float4ne(float32 arg1, float32 arg2);
|
|
|
|
extern bool float4lt(float32 arg1, float32 arg2);
|
|
|
|
extern bool float4le(float32 arg1, float32 arg2);
|
|
|
|
extern bool float4gt(float32 arg1, float32 arg2);
|
|
|
|
extern bool float4ge(float32 arg1, float32 arg2);
|
|
|
|
extern bool float8eq(float64 arg1, float64 arg2);
|
|
|
|
extern bool float8ne(float64 arg1, float64 arg2);
|
|
|
|
extern bool float8lt(float64 arg1, float64 arg2);
|
|
|
|
extern bool float8le(float64 arg1, float64 arg2);
|
|
|
|
extern bool float8gt(float64 arg1, float64 arg2);
|
|
|
|
extern bool float8ge(float64 arg1, float64 arg2);
|
|
|
|
extern float64 ftod(float32 num);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum i4tod(PG_FUNCTION_ARGS);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum i2tod(PG_FUNCTION_ARGS);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern float32 dtof(float64 num);
|
|
|
|
extern int32 dtoi4(float64 num);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum dtoi2(PG_FUNCTION_ARGS);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum i4tof(PG_FUNCTION_ARGS);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum i2tof(PG_FUNCTION_ARGS);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern int32 ftoi4(float32 num);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum ftoi2(PG_FUNCTION_ARGS);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum text_float8(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_float4(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum float8_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum float4_text(PG_FUNCTION_ARGS);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern float64 dround(float64 arg1);
|
|
|
|
extern float64 dtrunc(float64 arg1);
|
|
|
|
extern float64 dsqrt(float64 arg1);
|
|
|
|
extern float64 dcbrt(float64 arg1);
|
|
|
|
extern float64 dpow(float64 arg1, float64 arg2);
|
|
|
|
extern float64 dexp(float64 arg1);
|
|
|
|
extern float64 dlog1(float64 arg1);
|
2000-03-15 00:06:59 +01:00
|
|
|
extern float64 dlog10(float64 arg1);
|
2000-04-07 15:40:45 +02:00
|
|
|
extern float64 dacos(float64 arg1);
|
|
|
|
extern float64 dasin(float64 arg1);
|
|
|
|
extern float64 datan(float64 arg1);
|
|
|
|
extern float64 datan2(float64 arg1, float64 arg2);
|
|
|
|
extern float64 dcos(float64 arg1);
|
|
|
|
extern float64 dcot(float64 arg1);
|
|
|
|
extern float64 dsin(float64 arg1);
|
|
|
|
extern float64 dtan(float64 arg1);
|
|
|
|
extern float64 degrees(float64 arg1);
|
|
|
|
extern float64 dpi(void);
|
|
|
|
extern float64 radians(float64 arg1);
|
|
|
|
extern float64 dtan(float64 arg1);
|
|
|
|
extern float64 drandom(void);
|
|
|
|
extern int32 setseed(float64 seed);
|
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
extern float64 float48pl(float32 arg1, float64 arg2);
|
|
|
|
extern float64 float48mi(float32 arg1, float64 arg2);
|
|
|
|
extern float64 float48mul(float32 arg1, float64 arg2);
|
|
|
|
extern float64 float48div(float32 arg1, float64 arg2);
|
|
|
|
extern float64 float84pl(float64 arg1, float32 arg2);
|
|
|
|
extern float64 float84mi(float64 arg1, float32 arg2);
|
|
|
|
extern float64 float84mul(float64 arg1, float32 arg2);
|
|
|
|
extern float64 float84div(float64 arg1, float32 arg2);
|
|
|
|
extern bool float48eq(float32 arg1, float64 arg2);
|
|
|
|
extern bool float48ne(float32 arg1, float64 arg2);
|
|
|
|
extern bool float48lt(float32 arg1, float64 arg2);
|
|
|
|
extern bool float48le(float32 arg1, float64 arg2);
|
|
|
|
extern bool float48gt(float32 arg1, float64 arg2);
|
|
|
|
extern bool float48ge(float32 arg1, float64 arg2);
|
|
|
|
extern bool float84eq(float64 arg1, float32 arg2);
|
|
|
|
extern bool float84ne(float64 arg1, float32 arg2);
|
|
|
|
extern bool float84lt(float64 arg1, float32 arg2);
|
|
|
|
extern bool float84le(float64 arg1, float32 arg2);
|
|
|
|
extern bool float84gt(float64 arg1, float32 arg2);
|
|
|
|
extern bool float84ge(float64 arg1, float32 arg2);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* misc.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum nullvalue(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nonnullvalue(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidrand(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidsrand(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum userfntest(PG_FUNCTION_ARGS);
|
1997-04-27 21:24:16 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* not_in.c */
|
2000-06-09 03:11:16 +02:00
|
|
|
extern Datum int4notin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidnotin(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* oid.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum oidvectorin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oideq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectoreq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorlt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorle(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oidvectorgt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oideqint4(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum int4eqoid(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum oid_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_oid(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* regexp.c */
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum nameregexeq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nameregexne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textregexeq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textregexne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nameicregexeq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nameicregexne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum texticregexeq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum texticregexne(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* regproc.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum regprocin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regprocout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regproctooid(PG_FUNCTION_ARGS);
|
1997-04-27 21:24:16 +02:00
|
|
|
|
|
|
|
/* define macro to replace mixed-case function call - tgl 97/04/27 */
|
2000-06-05 09:29:25 +02:00
|
|
|
#define RegprocToOid(rp) ((Oid) (rp))
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1999-10-04 01:55:40 +02:00
|
|
|
/* ruleutils.c */
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum pg_get_ruledef(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum pg_get_viewdef(PG_FUNCTION_ARGS);
|
2000-06-09 03:11:16 +02:00
|
|
|
extern Datum pg_get_indexdef(PG_FUNCTION_ARGS);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum pg_get_userbyid(PG_FUNCTION_ARGS);
|
1999-10-04 01:55:40 +02:00
|
|
|
extern char *deparse_expression(Node *expr, List *rangetables,
|
2000-04-12 19:17:23 +02:00
|
|
|
bool forceprefix);
|
1999-10-04 01:55:40 +02:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* selfuncs.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum eqsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum neqsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum scalarltsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum scalargtsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regexeqsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum icregexeqsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum likesel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regexnesel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum icregexnesel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nlikesel(PG_FUNCTION_ARGS);
|
|
|
|
|
|
|
|
extern Datum eqjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum neqjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum scalarltjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum scalargtjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regexeqjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum icregexeqjoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum likejoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum regexnejoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum icregexnejoinsel(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum nlikejoinsel(PG_FUNCTION_ARGS);
|
|
|
|
|
|
|
|
extern Datum btcostestimate(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum rtcostestimate(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum hashcostestimate(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistcostestimate(PG_FUNCTION_ARGS);
|
|
|
|
|
|
|
|
/* selfuncs.c supporting routines that are also used by optimizer code */
|
2000-04-16 06:41:03 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
Pattern_Type_Like, Pattern_Type_Regex, Pattern_Type_Regex_IC
|
|
|
|
} Pattern_Type;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
Pattern_Prefix_None, Pattern_Prefix_Partial, Pattern_Prefix_Exact
|
|
|
|
} Pattern_Prefix_Status;
|
|
|
|
|
|
|
|
extern Pattern_Prefix_Status pattern_fixed_prefix(char *patt,
|
|
|
|
Pattern_Type ptype,
|
|
|
|
char **prefix,
|
|
|
|
char **rest);
|
|
|
|
extern char *make_greater_string(const char *str, Oid datatype);
|
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* tid.c */
|
1999-10-11 08:28:29 +02:00
|
|
|
extern ItemPointer tidin(const char *str);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern char *tidout(ItemPointer itemPtr);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern bool tideq(ItemPointer, ItemPointer);
|
2000-06-09 03:11:16 +02:00
|
|
|
extern Datum currtid_byreloid(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum currtid_byrelname(PG_FUNCTION_ARGS);
|
1997-03-12 22:28:14 +01:00
|
|
|
|
1996-11-10 04:06:38 +01:00
|
|
|
/* varchar.c */
|
2000-06-05 09:29:25 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum bpcharin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum bpcharout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum bpchar(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum _bpchar(PG_FUNCTION_ARGS);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum char_bpchar(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum bpchar_char(PG_FUNCTION_ARGS);
|
1998-05-29 15:37:29 +02:00
|
|
|
extern char *name_bpchar(NameData *s);
|
|
|
|
extern NameData *bpchar_name(char *s);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern bool bpchareq(char *arg1, char *arg2);
|
|
|
|
extern bool bpcharne(char *arg1, char *arg2);
|
|
|
|
extern bool bpcharlt(char *arg1, char *arg2);
|
|
|
|
extern bool bpcharle(char *arg1, char *arg2);
|
|
|
|
extern bool bpchargt(char *arg1, char *arg2);
|
|
|
|
extern bool bpcharge(char *arg1, char *arg2);
|
|
|
|
extern int32 bpcharcmp(char *arg1, char *arg2);
|
1997-12-16 16:55:17 +01:00
|
|
|
extern int32 bpcharlen(char *arg);
|
1998-04-27 19:10:50 +02:00
|
|
|
extern int32 bpcharoctetlen(char *arg);
|
2000-06-19 05:55:01 +02:00
|
|
|
extern Datum hashbpchar(PG_FUNCTION_ARGS);
|
1997-12-16 16:55:17 +01:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum varcharin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum varcharout(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum varchar(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum _varchar(PG_FUNCTION_ARGS);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern bool varchareq(char *arg1, char *arg2);
|
|
|
|
extern bool varcharne(char *arg1, char *arg2);
|
|
|
|
extern bool varcharlt(char *arg1, char *arg2);
|
|
|
|
extern bool varcharle(char *arg1, char *arg2);
|
|
|
|
extern bool varchargt(char *arg1, char *arg2);
|
|
|
|
extern bool varcharge(char *arg1, char *arg2);
|
|
|
|
extern int32 varcharcmp(char *arg1, char *arg2);
|
1997-12-16 16:55:17 +01:00
|
|
|
extern int32 varcharlen(char *arg);
|
1998-04-27 19:10:50 +02:00
|
|
|
extern int32 varcharoctetlen(char *arg);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* varlena.c */
|
2000-07-06 01:12:09 +02:00
|
|
|
extern Datum textin(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textout(PG_FUNCTION_ARGS);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum textcat(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum texteq(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textne(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_lt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_le(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_gt(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_ge(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_larger(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_smaller(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textlen(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textoctetlen(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textpos(PG_FUNCTION_ARGS);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum text_substr(PG_FUNCTION_ARGS);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum name_text(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum text_name(PG_FUNCTION_ARGS);
|
|
|
|
extern int varstr_cmp(char *arg1, int len1, char *arg2, int len2);
|
1997-12-16 16:55:17 +01:00
|
|
|
|
2000-03-24 03:41:46 +01:00
|
|
|
extern bytea *byteain(char *inputText);
|
|
|
|
extern char *byteaout(bytea *vlena);
|
|
|
|
extern int32 byteaoctetlen(bytea *v);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum byteaGetByte(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum byteaGetBit(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum byteaSetByte(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum byteaSetBit(PG_FUNCTION_ARGS);
|
1996-08-28 03:59:28 +02:00
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
/* version.c */
|
|
|
|
extern Datum pgsql_version(PG_FUNCTION_ARGS);
|
|
|
|
|
1996-11-10 04:06:38 +01:00
|
|
|
/* like.c */
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum namelike(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum namenlike(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textlike(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum textnlike(PG_FUNCTION_ARGS);
|
1996-11-10 04:06:38 +01:00
|
|
|
|
1997-03-09 21:41:02 +01:00
|
|
|
/* oracle_compat.c */
|
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum lower(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum upper(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum initcap(PG_FUNCTION_ARGS);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum lpad(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum rpad(PG_FUNCTION_ARGS);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum btrim(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum ltrim(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum rtrim(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum translate(PG_FUNCTION_ARGS);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum ichar(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum repeat(PG_FUNCTION_ARGS);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum ascii(PG_FUNCTION_ARGS);
|
1997-03-09 21:41:02 +01:00
|
|
|
|
1996-08-28 03:59:28 +02:00
|
|
|
/* acl.c */
|
|
|
|
|
1998-10-03 07:41:01 +02:00
|
|
|
/* inet_net_ntop.c */
|
2000-02-24 03:05:30 +01:00
|
|
|
extern char *inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size);
|
|
|
|
extern char *inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size);
|
1998-10-03 07:41:01 +02:00
|
|
|
|
|
|
|
/* inet_net_pton.c */
|
2000-04-12 19:17:23 +02:00
|
|
|
extern int inet_net_pton(int af, const char *src, void *dst, size_t size);
|
1998-10-03 07:41:01 +02:00
|
|
|
|
1998-10-22 22:40:50 +02:00
|
|
|
/* network.c */
|
2000-04-12 19:17:23 +02:00
|
|
|
extern inet *inet_in(char *str);
|
|
|
|
extern char *inet_out(inet *addr);
|
|
|
|
extern inet *cidr_in(char *str);
|
|
|
|
extern char *cidr_out(inet *addr);
|
|
|
|
extern bool network_lt(inet *a1, inet *a2);
|
|
|
|
extern bool network_le(inet *a1, inet *a2);
|
|
|
|
extern bool network_eq(inet *a1, inet *a2);
|
|
|
|
extern bool network_ge(inet *a1, inet *a2);
|
|
|
|
extern bool network_gt(inet *a1, inet *a2);
|
|
|
|
extern bool network_ne(inet *a1, inet *a2);
|
|
|
|
extern bool network_sub(inet *a1, inet *a2);
|
|
|
|
extern bool network_subeq(inet *a1, inet *a2);
|
|
|
|
extern bool network_sup(inet *a1, inet *a2);
|
|
|
|
extern bool network_supeq(inet *a1, inet *a2);
|
|
|
|
extern int4 network_cmp(inet *a1, inet *a2);
|
|
|
|
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum network_network(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum network_netmask(PG_FUNCTION_ARGS);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern int4 network_masklen(inet *addr);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum network_broadcast(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum network_host(PG_FUNCTION_ARGS);
|
1998-10-03 07:41:01 +02:00
|
|
|
|
|
|
|
/* mac.c */
|
2000-02-24 03:05:30 +01:00
|
|
|
extern macaddr *macaddr_in(char *str);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern char *macaddr_out(macaddr *addr);
|
|
|
|
extern bool macaddr_lt(macaddr *a1, macaddr *a2);
|
|
|
|
extern bool macaddr_le(macaddr *a1, macaddr *a2);
|
|
|
|
extern bool macaddr_eq(macaddr *a1, macaddr *a2);
|
|
|
|
extern bool macaddr_ge(macaddr *a1, macaddr *a2);
|
|
|
|
extern bool macaddr_gt(macaddr *a1, macaddr *a2);
|
|
|
|
extern bool macaddr_ne(macaddr *a1, macaddr *a2);
|
|
|
|
extern int4 macaddr_cmp(macaddr *a1, macaddr *a2);
|
2000-07-06 07:48:31 +02:00
|
|
|
extern Datum macaddr_manuf(PG_FUNCTION_ARGS);
|
1998-10-03 07:41:01 +02:00
|
|
|
|
1998-12-30 20:56:35 +01:00
|
|
|
/* numeric.c */
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum numeric_in(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum numeric_out(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum numeric(PG_FUNCTION_ARGS);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern Numeric numeric_abs(Numeric num);
|
|
|
|
extern Numeric numeric_uminus(Numeric num);
|
|
|
|
extern Numeric numeric_sign(Numeric num);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum numeric_round(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum numeric_trunc(PG_FUNCTION_ARGS);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern Numeric numeric_ceil(Numeric num);
|
|
|
|
extern Numeric numeric_floor(Numeric num);
|
|
|
|
extern int32 numeric_cmp(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_eq(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_ne(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_gt(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_ge(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_lt(Numeric num1, Numeric num2);
|
|
|
|
extern bool numeric_le(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_add(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_sub(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_mul(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_div(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_mod(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_inc(Numeric num);
|
|
|
|
extern Numeric numeric_dec(Numeric num);
|
|
|
|
extern Numeric numeric_smaller(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_larger(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_sqrt(Numeric num);
|
|
|
|
extern Numeric numeric_exp(Numeric num);
|
|
|
|
extern Numeric numeric_ln(Numeric num);
|
|
|
|
extern Numeric numeric_log(Numeric num1, Numeric num2);
|
|
|
|
extern Numeric numeric_power(Numeric num1, Numeric num2);
|
2000-06-13 09:35:40 +02:00
|
|
|
extern Datum int4_numeric(PG_FUNCTION_ARGS);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern int32 numeric_int4(Numeric num);
|
|
|
|
extern Numeric int8_numeric(int64 *val);
|
|
|
|
extern int64 *numeric_int8(Numeric num);
|
2000-06-05 09:29:25 +02:00
|
|
|
extern Datum int2_numeric(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum numeric_int2(PG_FUNCTION_ARGS);
|
2000-04-12 19:17:23 +02:00
|
|
|
extern Numeric float4_numeric(float32 val);
|
|
|
|
extern float32 numeric_float4(Numeric num);
|
|
|
|
extern Numeric float8_numeric(float64 val);
|
|
|
|
extern float64 numeric_float8(Numeric num);
|
1998-12-30 20:56:35 +01:00
|
|
|
|
2000-02-27 13:02:34 +01:00
|
|
|
/* lztext.c */
|
2000-07-06 07:48:31 +02:00
|
|
|
extern lztext *lztextin(char *str);
|
|
|
|
extern char *lztextout(lztext *lz);
|
|
|
|
extern text *lztext_text(lztext *lz);
|
|
|
|
extern Datum text_lztext(PG_FUNCTION_ARGS);
|
|
|
|
extern int32 lztextlen(lztext *lz);
|
|
|
|
extern int32 lztextoctetlen(lztext *lz);
|
|
|
|
extern int32 lztext_cmp(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_eq(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_ne(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_gt(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_ge(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_lt(lztext *lz1, lztext *lz2);
|
|
|
|
extern bool lztext_le(lztext *lz1, lztext *lz2);
|
2000-02-27 13:02:34 +01:00
|
|
|
|
1999-09-30 16:54:24 +02:00
|
|
|
/* ri_triggers.c */
|
2000-05-29 03:59:17 +02:00
|
|
|
extern Datum RI_FKey_check_ins(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_check_upd(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_noaction_del(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_noaction_upd(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_cascade_del(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_cascade_upd(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_restrict_del(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_restrict_upd(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_setnull_del(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_setnull_upd(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_setdefault_del(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum RI_FKey_setdefault_upd(PG_FUNCTION_ARGS);
|
1998-10-03 07:41:01 +02:00
|
|
|
|
2000-06-13 09:35:40 +02:00
|
|
|
/* even if MULTIBYTE is not enabled, these functions are necessary
|
|
|
|
* since pg_proc.h has references to them.
|
|
|
|
*/
|
|
|
|
extern Datum getdatabaseencoding(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum PG_encoding_to_char(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum PG_char_to_encoding(PG_FUNCTION_ARGS);
|
|
|
|
|
2000-07-09 23:30:21 +02:00
|
|
|
/* format_type.c */
|
2000-07-07 21:24:43 +02:00
|
|
|
extern Datum format_type(PG_FUNCTION_ARGS);
|
2000-07-09 23:30:21 +02:00
|
|
|
extern Datum oidvectortypes(PG_FUNCTION_ARGS);
|
2000-07-07 21:24:43 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* BUILTINS_H */
|