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
971175fa
Commit
971175fa
authored
Nov 27, 1998
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New HeapTuple structure/interface.
parent
6beba218
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
contrib/fulltextindex/fti.c
contrib/fulltextindex/fti.c
+1
-1
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_comp.c
+8
-8
src/pl/tcl/pltcl.c
src/pl/tcl/pltcl.c
+2
-2
No files found.
contrib/fulltextindex/fti.c
View file @
971175fa
...
...
@@ -154,7 +154,7 @@ fti()
tupdesc
=
rel
->
rd_att
;
/* what the tuple looks like (?) */
/* get oid of current tuple, needed by all, so place here */
oid
=
rettuple
->
t_oid
;
oid
=
rettuple
->
t_
data
->
t_
oid
;
if
(
!
OidIsValid
(
oid
))
elog
(
ERROR
,
"Full Text Indexing: oid of current tuple is NULL"
);
...
...
src/pl/plpgsql/src/pl_comp.c
View file @
971175fa
...
...
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.
3 1998/09/01 04:40:20 momjian
Exp $
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.
4 1998/11/27 20:07:22 vadim
Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -620,7 +620,7 @@ plpgsql_parse_word(char *word)
typ
=
(
PLpgSQL_type
*
)
malloc
(
sizeof
(
PLpgSQL_type
));
typ
->
typname
=
strdup
(
nameout
(
&
(
typeStruct
->
typname
)));
typ
->
typoid
=
typeTup
->
t_oid
;
typ
->
typoid
=
typeTup
->
t_
data
->
t_
oid
;
fmgr_info
(
typeStruct
->
typinput
,
&
(
typ
->
typinput
));
typ
->
typbyval
=
typeStruct
->
typbyval
;
typ
->
atttypmod
=
-
1
;
...
...
@@ -943,7 +943,7 @@ plpgsql_parse_wordtype(char *word)
typ
=
(
PLpgSQL_type
*
)
malloc
(
sizeof
(
PLpgSQL_type
));
typ
->
typname
=
strdup
(
nameout
(
&
(
typeStruct
->
typname
)));
typ
->
typoid
=
typeTup
->
t_oid
;
typ
->
typoid
=
typeTup
->
t_
data
->
t_
oid
;
fmgr_info
(
typeStruct
->
typinput
,
&
(
typ
->
typinput
));
typ
->
typbyval
=
typeStruct
->
typbyval
;
typ
->
atttypmod
=
-
1
;
...
...
@@ -1060,7 +1060,7 @@ plpgsql_parse_dblwordtype(char *string)
* ----------
*/
attrtup
=
SearchSysCacheTuple
(
ATTNAME
,
ObjectIdGetDatum
(
classtup
->
t_oid
),
ObjectIdGetDatum
(
classtup
->
t_
data
->
t_
oid
),
PointerGetDatum
(
word2
),
0
,
0
);
if
(
!
HeapTupleIsValid
(
attrtup
))
{
...
...
@@ -1087,7 +1087,7 @@ plpgsql_parse_dblwordtype(char *string)
typ
=
(
PLpgSQL_type
*
)
malloc
(
sizeof
(
PLpgSQL_type
));
typ
->
typname
=
strdup
(
nameout
(
&
(
typeStruct
->
typname
)));
typ
->
typoid
=
typetup
->
t_oid
;
typ
->
typoid
=
typetup
->
t_
data
->
t_
oid
;
fmgr_info
(
typeStruct
->
typinput
,
&
(
typ
->
typinput
));
typ
->
typbyval
=
typeStruct
->
typbyval
;
typ
->
atttypmod
=
attrStruct
->
atttypmod
;
...
...
@@ -1163,7 +1163,7 @@ plpgsql_parse_wordrowtype(char *string)
row
->
dtype
=
PLPGSQL_DTYPE_ROW
;
row
->
nfields
=
classStruct
->
relnatts
;
row
->
rowtypeclass
=
typetup
->
t_oid
;
row
->
rowtypeclass
=
typetup
->
t_
data
->
t_
oid
;
row
->
fieldnames
=
malloc
(
sizeof
(
char
*
)
*
row
->
nfields
);
row
->
varnos
=
malloc
(
sizeof
(
int
)
*
row
->
nfields
);
...
...
@@ -1174,7 +1174,7 @@ plpgsql_parse_wordrowtype(char *string)
* ----------
*/
attrtup
=
SearchSysCacheTuple
(
ATTNUM
,
ObjectIdGetDatum
(
classtup
->
t_oid
),
ObjectIdGetDatum
(
classtup
->
t_
data
->
t_
oid
),
(
Datum
)
(
i
+
1
),
0
,
0
);
if
(
!
HeapTupleIsValid
(
attrtup
))
{
...
...
@@ -1215,7 +1215,7 @@ plpgsql_parse_wordrowtype(char *string)
strcat
(
var
->
refname
,
cp
);
var
->
datatype
=
malloc
(
sizeof
(
PLpgSQL_type
));
var
->
datatype
->
typname
=
strdup
(
nameout
(
&
(
typeStruct
->
typname
)));
var
->
datatype
->
typoid
=
typetup
->
t_oid
;
var
->
datatype
->
typoid
=
typetup
->
t_
data
->
t_
oid
;
fmgr_info
(
typeStruct
->
typinput
,
&
(
var
->
datatype
->
typinput
));
var
->
datatype
->
typbyval
=
typeStruct
->
typbyval
;
var
->
datatype
->
atttypmod
=
attrStruct
->
atttypmod
;
...
...
src/pl/tcl/pltcl.c
View file @
971175fa
...
...
@@ -3,7 +3,7 @@
* procedural language (PL)
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.
7 1998/10/09 16:57:10 momjian
Exp $
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.
8 1998/11/27 20:05:27 vadim
Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -1613,7 +1613,7 @@ pltcl_SPI_prepare(ClientData cdata, Tcl_Interp * interp,
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
typeTup
))
elog
(
ERROR
,
"pltcl: Cache lookup of type %s failed"
,
args
[
i
]);
qdesc
->
argtypes
[
i
]
=
typeTup
->
t_oid
;
qdesc
->
argtypes
[
i
]
=
typeTup
->
t_
data
->
t_
oid
;
fmgr_info
(((
Form_pg_type
)
GETSTRUCT
(
typeTup
))
->
typinput
,
&
(
qdesc
->
arginfuncs
[
i
]));
qdesc
->
argtypelems
[
i
]
=
((
Form_pg_type
)
GETSTRUCT
(
typeTup
))
->
typelem
;
...
...
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