Database Reference
In-Depth Information
c | 2
b | 13
a | 7
x | 33
-[ RECORD 3 ]
c | 7
b | 2
a | 13
x | 62
-[ RECORD 4 ]
c | 7
b | 13
a | 2
x | 93
-[ RECORD 5 ]
c | 13
b | 2
a | 7
x | 33
-[ RECORD 6 ]
c | 13
b | 7
a | 2
x | 93
There are three new things that we are going to touch in the following C implement-
ation of similar function:
1. How to fetch an element of a RECORD passed as an argument?
2. How to construct a tuple to return a RECORD type?
3. How to return SETOF (a.k.a TABLE ) of this RECORD ?
So let's dive into the C code for this right away (a sample can be found in the chap8/
c_records/ directory).
For clarity, we will explain this function in two parts, first doing a simple re-
verse(a,b,c) function, which returns just a single record of
Search WWH ::




Custom Search