Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3984f0ee
Commit
3984f0ee
authored
May 29, 1998
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add conversion functions between "name" and other string types.
parent
457b6efa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
+31
-7
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+26
-6
src/include/utils/builtins.h
src/include/utils/builtins.h
+5
-1
No files found.
src/include/catalog/pg_proc.h
View file @
3984f0ee
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.5
8 1998/05/13 03:44:24 momjian
Exp $
* $Id: pg_proc.h,v 1.5
9 1998/05/29 13:36:31 thomas
Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -200,7 +200,7 @@ DESCR("does not match regex., case-sensitive");
DATA
(
insert
OID
=
1257
(
textlen
PGUID
11
f
t
f
1
f
23
"25"
100
0
1
0
foo
bar
));
DESCR
(
"length"
);
DATA
(
insert
OID
=
1258
(
textcat
PGUID
11
f
t
f
2
f
25
"25 25"
100
0
1
0
foo
bar
));
DESCR
(
"concat"
);
DESCR
(
"concat
enate
"
);
DATA
(
insert
OID
=
1377
(
textoctetlen
PGUID
11
f
t
f
1
f
23
"25"
100
0
1
0
foo
bar
));
DESCR
(
"octet length"
);
DATA
(
insert
OID
=
84
(
boolne
PGUID
11
f
t
f
2
f
16
"16 16"
100
0
0
100
foo
bar
));
...
...
@@ -780,6 +780,15 @@ DESCR("");
/* OIDS 400 - 499 */
DATA
(
insert
OID
=
406
(
name_text
PGUID
11
f
t
f
1
f
25
"19"
100
0
0
100
foo
bar
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
407
(
text_name
PGUID
11
f
t
f
1
f
19
"25"
100
0
0
100
foo
bar
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
408
(
name_bpchar
PGUID
11
f
t
f
1
f
1042
"19"
100
0
0
100
foo
bar
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
409
(
bpchar_name
PGUID
11
f
t
f
1
f
19
"1042"
100
0
0
100
foo
bar
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
438
(
hashsel
PGUID
11
f
t
t
7
f
701
"26 26 21 0 23 23 26"
100
0
0
100
foo
bar
));
DESCR
(
"selectivity"
);
DATA
(
insert
OID
=
439
(
hashnpage
PGUID
11
f
t
t
7
f
701
"26 26 21 0 23 23 26"
100
0
0
100
foo
bar
));
...
...
@@ -1609,7 +1618,18 @@ DESCR("boolean test");
DATA
(
insert
OID
=
1393
(
timespan
PGUID
14
f
t
f
1
f
1186
"25"
100
0
0
100
"select text_timespan($1)"
-
));
DESCR
(
"convert"
);
/* reserve OIDs 1370-1399 for additional date/time conversion routines! tgl 97/04/01 */
DATA
(
insert
OID
=
1394
(
name
PGUID
14
f
t
f
1
f
19
"25"
100
0
0
100
"select text_name($1)"
-
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
1395
(
text
PGUID
14
f
t
f
1
f
25
"19"
100
0
0
100
"select name_text($1)"
-
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
1396
(
name
PGUID
14
f
t
f
1
f
19
"1042"
100
0
0
100
"select bpchar_name($1)"
-
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
1397
(
bpchar
PGUID
14
f
t
f
1
f
1042
"19"
100
0
0
100
"select name_bpchar($1)"
-
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
1398
(
name
PGUID
14
f
t
f
1
f
19
"1043"
100
0
0
100
"select text_name($1)"
-
));
DESCR
(
"convert"
);
DATA
(
insert
OID
=
1399
(
varchar
PGUID
14
f
t
f
1
f
1043
"19"
100
0
0
100
"select name_text($1)"
-
));
DESCR
(
"convert"
);
/* OIDS 1400 - 1499 */
...
...
src/include/utils/builtins.h
View file @
3984f0ee
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.4
2 1998/05/09 22:45:14
thomas Exp $
* $Id: builtins.h,v 1.4
3 1998/05/29 13:37:29
thomas Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
...
...
@@ -395,6 +395,8 @@ extern char *bpcharout(char *s);
extern
char
*
bpchar
(
char
*
s
,
int32
slen
);
extern
char
*
char_bpchar
(
int32
c
);
extern
int32
bpchar_char
(
char
*
s
);
extern
char
*
name_bpchar
(
NameData
*
s
);
extern
NameData
*
bpchar_name
(
char
*
s
);
extern
bool
bpchareq
(
char
*
arg1
,
char
*
arg2
);
extern
bool
bpcharne
(
char
*
arg1
,
char
*
arg2
);
extern
bool
bpcharlt
(
char
*
arg1
,
char
*
arg2
);
...
...
@@ -434,6 +436,8 @@ extern int32 textlen(text *arg);
extern
int32
textoctetlen
(
text
*
arg
);
extern
int32
textpos
(
text
*
arg1
,
text
*
arg2
);
extern
text
*
text_substr
(
text
*
string
,
int32
m
,
int32
n
);
extern
text
*
name_text
(
NameData
*
s
);
extern
NameData
*
text_name
(
text
*
s
);
extern
struct
varlena
*
byteain
(
char
*
inputText
);
extern
char
*
byteaout
(
struct
varlena
*
vlena
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment