Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
db602e80
Commit
db602e80
authored
27 years ago
by
Thomas G. Lockhart
Browse files
Options
Downloads
Patches
Plain Diff
Fix some typos.
parent
329949d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/dfunc.sgml
+21
-14
21 additions, 14 deletions
doc/src/sgml/dfunc.sgml
doc/src/sgml/intro.sgml
+1
-1
1 addition, 1 deletion
doc/src/sgml/intro.sgml
with
22 additions
and
15 deletions
doc/src/sgml/dfunc.sgml
+
21
−
14
View file @
db602e80
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
previously mentioned, <ProductName>Postgres</ProductName> loads your code at
previously mentioned, <ProductName>Postgres</ProductName> loads your code at
runtime, as required. In order to allow your code to be
runtime, as required. In order to allow your code to be
dynamically loaded, you may have to compile and
dynamically loaded, you may have to compile and
linkedit it in a special way. This section briefly
link
-
edit it in a special way. This section briefly
describes how to perform the compilation and
describes how to perform the compilation and
linkediting required before you can load your user-defined
link
-
editing required before you can load your user-defined
functions into a running <ProductName>Postgres</ProductName> server. Note that
functions into a running <ProductName>Postgres</ProductName> server. Note that
this process has changed as of Version 4.2.
this process has changed as of Version 4.2.
<Tip>
<Tip>
...
@@ -126,7 +126,7 @@ The GNU C compiler usually does not provide the special
...
@@ -126,7 +126,7 @@ The GNU C compiler usually does not provide the special
<Para>
<Para>
It is very easy to build dynamically-loaded object
It is very easy to build dynamically-loaded object
files under ULTRIX. ULTRIX does not have any sharedlibrary
files under ULTRIX. ULTRIX does not have any shared
library
mechanism and hence does not place any restrictions on
mechanism and hence does not place any restrictions on
the dynamic loader interface. On the other
the dynamic loader interface. On the other
hand, we had to (re)write a non-portable dynamic loader
hand, we had to (re)write a non-portable dynamic loader
...
@@ -140,7 +140,8 @@ The GNU C compiler usually does not provide the special
...
@@ -140,7 +140,8 @@ The GNU C compiler usually does not provide the special
% cc -G 0 -c foo.c
% cc -G 0 -c foo.c
</ProgramListing>
</ProgramListing>
produces an object file called foo.o that can then be
produces an object file called foo.o that can then be
dynamically loaded into <ProductName>Postgres</ProductName>. No additional loading or link-editing must be performed.
dynamically loaded into <ProductName>Postgres</ProductName>.
No additional loading or link-editing must be performed.
</Para>
</Para>
</Sect1>
</Sect1>
...
@@ -149,7 +150,8 @@ The GNU C compiler usually does not provide the special
...
@@ -149,7 +150,8 @@ The GNU C compiler usually does not provide the special
<Para>
<Para>
Under DEC OSF/1, you can take any simple object file
Under DEC OSF/1, you can take any simple object file
and produce a shared object file by running the ld command over it with the correct options. The commands to
and produce a shared object file by running the ld command
over it with the correct options. The commands to
do this look like:
do this look like:
<ProgramListing>
<ProgramListing>
# simple DEC OSF/1 example
# simple DEC OSF/1 example
...
@@ -168,7 +170,8 @@ Actually, <ProductName>Postgres</ProductName> does not care
...
@@ -168,7 +170,8 @@ Actually, <ProductName>Postgres</ProductName> does not care
what you name the
what you name the
file as long as it is a shared object file. If you prefer
file as long as it is a shared object file. If you prefer
to name your shared object files with the extension .o, this
to name your shared object files with the extension .o, this
is fine with <ProductName>Postgres</ProductName> so long as you make sure that the correct
is fine with <ProductName>Postgres</ProductName>
so long as you make sure that the correct
file name is given to the create function command. In
file name is given to the create function command. In
other words, you must simply be consistent. However, from a
other words, you must simply be consistent. However, from a
pragmatic point of view, we discourage this practice because
pragmatic point of view, we discourage this practice because
...
@@ -205,8 +208,8 @@ If the file you specify is
...
@@ -205,8 +208,8 @@ If the file you specify is
very simple, since the commands to do it are just:
very simple, since the commands to do it are just:
<ProgramListing>
<ProgramListing>
# simple HP-UX example
# simple HP-UX example
% cc +z +u -c foo.c
% cc +z +u -c foo.c
% ld -b -o foo.sl foo.o
% ld -b -o foo.sl foo.o
</ProgramListing>
</ProgramListing>
</Para>
</Para>
...
@@ -218,17 +221,21 @@ If the file you specify is
...
@@ -218,17 +221,21 @@ If the file you specify is
Under SunOS 4.x, the commands look like:
Under SunOS 4.x, the commands look like:
<ProgramListing>
<ProgramListing>
# simple SunOS 4.x example
# simple SunOS 4.x example
% cc -PIC -c foo.c
% cc -PIC -c foo.c
% ld -dc -dp -Bdynamic -o foo.so foo.o
% ld -dc -dp -Bdynamic -o foo.so foo.o
</ProgramListing>
</ProgramListing>
and the equivalent lines under Solaris 2.x are:
and the equivalent lines under Solaris 2.x are:
<ProgramListing>
<ProgramListing>
# simple Solaris 2.x example
# simple Solaris 2.x example
% cc -K PIC -c foo.c
% cc -K PIC -c foo.c
or
% ld -G -Bdynamic -o foo.so foo.o
% gcc -fPIC -c foo.c
</ProgramListing>
% ld -G -Bdynamic -o foo.so foo.o
or
<ProgramListing>
# simple Solaris 2.x example
% gcc -fPIC -c foo.c
% ld -G -Bdynamic -o foo.so foo.o
</ProgramListing>
</ProgramListing>
</Para>
</Para>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/intro.sgml
+
1
−
1
View file @
db602e80
...
@@ -275,7 +275,7 @@ Built-in types have been improved, including new wide-range date/time types and
...
@@ -275,7 +275,7 @@ Built-in types have been improved, including new wide-range date/time types and
</ListItem>
</ListItem>
<ListItem>
<ListItem>
<Para>
<Para>
Overall backend code speed has been increased by approximately 20%, and backend startup
speed
has decreased 80%.
Overall backend code speed has been increased by approximately 20%, and backend startup
time
has decreased 80%.
</Para>
</Para>
</ListItem>
</ListItem>
</ItemizedList>
</ItemizedList>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment