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
3c879e37
Commit
3c879e37
authored
Nov 12, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more index entries.
parent
3a306eef
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
185 additions
and
68 deletions
+185
-68
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+4
-1
doc/src/sgml/charset.sgml
doc/src/sgml/charset.sgml
+8
-1
doc/src/sgml/client-auth.sgml
doc/src/sgml/client-auth.sgml
+5
-2
doc/src/sgml/dfunc.sgml
doc/src/sgml/dfunc.sgml
+30
-19
doc/src/sgml/ecpg.sgml
doc/src/sgml/ecpg.sgml
+6
-2
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+35
-20
doc/src/sgml/lobj.sgml
doc/src/sgml/lobj.sgml
+6
-1
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+14
-1
doc/src/sgml/manage-ag.sgml
doc/src/sgml/manage-ag.sgml
+5
-2
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+10
-1
doc/src/sgml/odbc.sgml
doc/src/sgml/odbc.sgml
+5
-2
doc/src/sgml/plpython.sgml
doc/src/sgml/plpython.sgml
+4
-1
doc/src/sgml/rules.sgml
doc/src/sgml/rules.sgml
+13
-10
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+27
-1
doc/src/sgml/xfunc.sgml
doc/src/sgml/xfunc.sgml
+13
-4
No files found.
doc/src/sgml/backup.sgml
View file @
3c879e37
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.1
7 2001/10/04 04:46:43 momjian
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v 2.1
8 2001/11/12 19:19:39 petere
Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
<indexterm zone="backup"><primary>backup</></>
<para>
As everything that contains valuable data, <productname>Postgres</>
databases should be backed up regularly. While the procedure is
...
...
@@ -363,6 +365,7 @@ tar -cf backup.tar /usr/local/pgsql/data
<sect1 id="migration">
<title>Migration between releases</title>
<indexterm zone="migration"><primary>upgrading</></>
<para>
As a general rule, the internal data storage format is subject to
...
...
doc/src/sgml/charset.sgml
View file @
3c879e37
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.1
3 2001/10/31 20:35:01
petere Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.1
4 2001/11/12 19:19:39
petere Exp $ -->
<chapter id="charset">
<title>Localization</>
...
...
@@ -49,6 +49,8 @@
<sect1 id="locale">
<title>Locale Support</title>
<indexterm zone="locale"><primary>locale</></>
<para>
<firstterm>Locale</> support refers to an application respecting
cultural preferences regarding alphabets, sorting, number
...
...
@@ -171,6 +173,7 @@ export LANG=sv_SE
<listitem>
<para>
Sort order in <command>ORDER BY</> queries.
<indexterm><primary>ORDER BY</></>
</para>
</listitem>
...
...
@@ -243,6 +246,8 @@ perl: warning: Falling back to the standard locale ("C").
<sect1 id="multibyte">
<title>Multibyte Support</title>
<indexterm zone="multibyte"><primary>multibyte</></>
<note>
<title>Author</title>
...
...
@@ -586,6 +591,8 @@ RESET CLIENT_ENCODING;
<sect2>
<title>About Unicode</title>
<indexterm><primary>Unicode</></>
<para>
An automatic encoding translation between Unicode and other
encodings has been supported since PostgreSQL 7.1.
...
...
doc/src/sgml/client-auth.sgml
View file @
3c879e37
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.2
5 2001/11/12 02:35:16 momjian
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.2
6 2001/11/12 19:19:39 petere
Exp $ -->
<chapter id="client-authentication">
<title>Client Authentication</title>
...
...
@@ -423,12 +423,15 @@ host all 192.168.0.0 255.255.0.0 ident omicron
The following describes the authentication methods in detail.
</para>
<sect2>
<sect2
id="auth-password"
>
<title>Password authentication</title>
<indexterm>
<primary>password</primary>
</indexterm>
<indexterm>
<primary>MD5</>
</indexterm>
<para>
<productname>Postgres</> database passwords are separate from any
...
...
doc/src/sgml/dfunc.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/dfunc.sgml,v 1.1
5 2001/10/26 19:58:12 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/dfunc.sgml,v 1.1
6 2001/11/12 19:19:39 petere
Exp $
-->
<sect2 id="dfunc">
...
...
@@ -25,6 +25,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/dfunc.sgml,v 1.15 2001/10/26 19:58:12 tgl E
</para>
<para>
<indexterm><primary>PIC</></>
Creating shared libraries is generally analoguous to linking
executables: first the source files are compiled into object files,
then the object files are linked together. The object files need to
...
...
@@ -57,6 +58,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/dfunc.sgml,v 1.15 2001/10/26 19:58:12 tgl E
<variablelist>
<varlistentry>
<term><productname>BSD/OS</productname></term>
<indexterm><primary>BSD/OS</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -74,6 +76,7 @@ ld -shared -o foo.so foo.o
<varlistentry>
<term><productname>FreeBSD</productname></term>
<indexterm><primary>FreeBSD</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -91,6 +94,7 @@ gcc -shared -o foo.so foo.o
<varlistentry>
<term><productname>HP-UX</productname></term>
<indexterm><primary>HP-UX</></>
<listitem>
<para>
The compiler flag of the system compiler to create
...
...
@@ -117,6 +121,7 @@ ld -b -o foo.sl foo.o
<varlistentry>
<term><productname>Irix</productname></term>
<indexterm><primary>Irix</></>
<listitem>
<para>
<acronym>PIC</acronym> is the default, no special compiler
...
...
@@ -132,6 +137,7 @@ ld -shared -o foo.so foo.o
<varlistentry>
<term><productname>Linux</productname></term>
<indexterm><primary>Linux</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -150,6 +156,7 @@ cc -shared -o foo.so foo.o
<varlistentry>
<term><productname>NetBSD</productname></term>
<indexterm><primary>NetBSD</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -167,6 +174,7 @@ gcc -shared -o foo.so foo.o
<varlistentry>
<term><productname>OpenBSD</productname></term>
<indexterm><primary>OpenBSD</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -180,26 +188,9 @@ ld -Bshareable -o foo.so foo.o
</listitem>
</varlistentry>
<varlistentry>
<term>Digital Unix/Tru64 UNIX</term>
<listitem>
<para>
<acronym>PIC</acronym> is the default, so the compilation command
is the usual one. <command>ld</command> with special options is
used to do the linking:
<programlisting>
cc -c foo.c
ld -shared -expect_unresolved '*' -o foo.so foo.o
</programlisting>
The same procedure is used with GCC instead of the system
compiler; no special options are required.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><productname>Solaris</productname></term>
<indexterm><primary>Solaris</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is
...
...
@@ -221,8 +212,28 @@ gcc -G -o foo.so foo.o
</listitem>
</varlistentry>
<varlistentry>
<term>Tru64 UNIX</term>
<indexterm><primary>Tru64 UNIX</></>
<indexterm><primary>Digital UNIX</><see>Tru64 UNIX</></>
<listitem>
<para>
<acronym>PIC</acronym> is the default, so the compilation command
is the usual one. <command>ld</command> with special options is
used to do the linking:
<programlisting>
cc -c foo.c
ld -shared -expect_unresolved '*' -o foo.so foo.o
</programlisting>
The same procedure is used with GCC instead of the system
compiler; no special options are required.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><productname>Unixware</productname></term>
<indexterm><primary>Unixware</></>
<listitem>
<para>
The compiler flag to create <acronym>PIC</acronym> is <option>-K
...
...
doc/src/sgml/ecpg.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.
29 2001/11/08 23:37:50
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.
30 2001/11/12 19:19:39
petere Exp $
-->
<chapter id="ecpg">
...
...
@@ -28,6 +28,8 @@ $Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.29 2001/11/08 23:37:50 petere
<title><application>ecpg</application> - Embedded <acronym>SQL</acronym>
in <acronym>C</acronym></title>
<indexterm zone="ecpg"><primary>embedded SQL</primary><secondary>in C</secondary></indexterm>
<para>
This describes the embedded <acronym>SQL</acronym> package for
<productname>Postgres</productname>. It works with
...
...
@@ -538,6 +540,7 @@ struct sqlca
<variablelist>
<varlistentry>
<term>Syntax of FETCH</term>
<indexterm><primary>FETCH</><secondary>embedded SQL</></indexterm>
<listitem>
<para>
The standard syntax for FETCH is:
...
...
@@ -546,7 +549,8 @@ struct sqlca
FETCH [direction] [amount] IN|FROM <replaceable>cursor</replaceable>.
</para>
<para>
<application>ORACLE</application>, however, does not use the keywords IN
<indexterm><primary>Oracle</></>
<application>Oracle</application>, however, does not use the keywords IN
or FROM. This feature cannot be added since it would create parsing
conflicts.
</para>
...
...
doc/src/sgml/libpq.sgml
View file @
3c879e37
This diff is collapsed.
Click to expand it.
doc/src/sgml/lobj.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.2
3 2001/10/09 18:46:00
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.2
4 2001/11/12 19:19:39
petere Exp $
-->
<chapter id="largeObjects">
<title id="largeObjects-title">Large Objects</title>
<indexterm zone="largeobjects"><primary>large object</></>
<indexterm><primary>BLOB</><see>large object</></>
<sect1 id="lo-intro">
<title>Introduction</title>
...
...
@@ -41,6 +44,8 @@ $Header: /cvsroot/pgsql/doc/src/sgml/lobj.sgml,v 1.23 2001/10/09 18:46:00 petere
</para>
<para>
<indexterm><primary>TOAST</></>
<indexterm><primary>sliced bread</><see>TOAST</></indexterm>
<productname>PostgreSQL 7.1</productname> introduced a mechanism
(nicknamed <quote><acronym>TOAST</acronym></quote>) that allows
data rows to be much larger than individual data pages. This
...
...
doc/src/sgml/maintenance.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.
5 2001/10/12 23:32:34 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.
6 2001/11/12 19:19:39 petere
Exp $
-->
<chapter id="maintenance">
...
...
@@ -52,6 +52,10 @@ $Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.5 2001/10/12 23:32:34
<sect1 id="routine-vacuuming">
<title>Routine Vacuuming</title>
<indexterm zone="routine-vacuuming">
<primary>vacuum</primary>
</indexterm>
<para>
<productname>PostgreSQL</productname>'s <command>VACUUM</> command must be
run on a regular basis for several reasons:
...
...
@@ -93,6 +97,10 @@ $Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.5 2001/10/12 23:32:34
<sect2 id="vacuum-for-space-recovery">
<title>Recovering disk space</title>
<indexterm zone="vacuum-for-space-recovery">
<primary>disk space</primary>
</indexterm>
<para>
In normal <productname>PostgreSQL</productname> operation, an UPDATE or
DELETE of a row does not immediately remove the old <firstterm>tuple</>
...
...
@@ -219,6 +227,11 @@ $Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.5 2001/10/12 23:32:34
<sect2 id="vacuum-for-wraparound">
<title>Preventing transaction ID wraparound failures</title>
<indexterm zone="vacuum-for-wraparound">
<primary>transaction ID</primary>
<secondary>wraparound</secondary>
</indexterm>
<para>
<productname>PostgreSQL</productname>'s MVCC transaction semantics
depend on being able to compare transaction ID (<firstterm>XID</>)
...
...
doc/src/sgml/manage-ag.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/manage-ag.sgml,v 2.1
6 2001/10/09 18:46:00
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/manage-ag.sgml,v 2.1
7 2001/11/12 19:19:39
petere Exp $
-->
<chapter id="managing-databases">
<title>Managing Databases</title>
<indexterm zone="managing-databases"><primary>database</></>
<para>
A database is a named collection of SQL objects (<quote>database
objects</quote>); every database object (tables, function, etc.)
...
...
@@ -53,7 +55,7 @@ CREATE DATABASE <replaceable>name</>
</para>
<formalpara>
<title>Bootstrapping</title>
<title>Bootstrapping
:
</title>
<para>
Since you need to be connected to the database server in order to
execute the <command>CREATE DATABASE</command> command, the
...
...
@@ -140,6 +142,7 @@ setenv PGDATA2 /home/postgres/data
</para>
<para>
<indexterm><primary>initlocation</></>
To create a data storage area in <envar>PGDATA2</>, ensure that
<filename>/home/postgres</filename> already exists and is writable
by the user account that runs the server (see <xref
...
...
doc/src/sgml/monitoring.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.
3 2001/11/08 23:39:22
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.
4 2001/11/12 19:19:39
petere Exp $
-->
<chapter id="monitoring">
...
...
@@ -27,6 +27,11 @@ $Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.3 2001/11/08 23:39:22 p
<sect1 id="monitoring-ps">
<title>Standard Unix Tools</Title>
<indexterm zone="monitoring-ps">
<primary>ps</primary>
<secondary>to monitor activity</secondary>
</indexterm>
<para>
On most platforms, <productname>PostgreSQL</productname> modifies its
command title as reported by <command>ps</>, so that individual server
...
...
@@ -72,6 +77,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<sect1 id="monitoring-stats">
<title>Statistics Collector</Title>
<indexterm zone="monitoring-stats">
<primary>statistics</primary>
</indexterm>
<para>
<productname>PostgreSQL</productname>'s <firstterm>statistics collector</>
is a subsystem that supports collection and reporting of information about
...
...
doc/src/sgml/odbc.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/odbc.sgml,v 1.2
6 2001/10/31 20:39:30
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/odbc.sgml,v 1.2
7 2001/11/12 19:19:39
petere Exp $
-->
<chapter id="odbc">
...
...
@@ -146,6 +146,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/odbc.sgml,v 1.26 2001/10/31 20:39:30
</para>
<para>
<indexterm><primary>odbc.sql</></>
Additionally, you should install the ODBC catalog extensions. That will
provide a number of functions mandated by the ODBC standard that are not
supplied by <productname>PostgreSQL</> by default. The file
...
...
@@ -166,6 +167,8 @@ psql -d template1 -f <replaceable>LOCATION</>/odbc.sql
<sect1 id="odbc-config">
<title>Configuration Files</title>
<indexterm zone="odbc-config"><primary>.odbc.ini</></>
<para>
<filename>~/.odbc.ini</filename> contains user-specified access information
for the <productname>psqlODBC</productname> driver.
...
...
@@ -308,7 +311,7 @@ InstallDir = /opt/applix/axdata/axshlib
<para>
Playing around with MS Access will help you sort this out. Try using
<
literal>File->Get External Data</literal
>.
<
menuchoice><guimenu>File</><guimenuitem>Get External Data</></menuchoice
>.
</para>
<tip>
...
...
doc/src/sgml/plpython.sgml
View file @
3c879e37
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.
4 2001/09/13 15:55:23
petere Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.
5 2001/11/12 19:19:39
petere Exp $ -->
<chapter id="plpython">
<title>PL/Python - Python Procedural Language</title>
<indexterm zone="plpython"><primary>PL/Python</></>
<indexterm zone="plpython"><primary>Python</></>
<note>
<para>
This chapter is not fully developed yet.
...
...
doc/src/sgml/rules.sgml
View file @
3c879e37
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/rules.sgml,v 1.1
7 2001/09/13 15:55:23
petere Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/rules.sgml,v 1.1
8 2001/11/12 19:19:39
petere Exp $ -->
<Chapter Id="rules">
<Title>The
<ProductName>Postgres</ProductName>
Rule System</Title>
<Title>The Rule System</Title>
<indexterm zone="rules">
<primary>rules</primary>
...
...
@@ -20,7 +20,7 @@
them. Some of these points and
the theoretical foundations of the <ProductName>Postgres</ProductName>
rule system can be found in
[<XRef LinkEnd="STON90b" EndTerm="STON90b">]
.
<XRef LinkEnd="STON90b">
.
</Para>
<Para>
...
...
@@ -38,9 +38,9 @@
is very powerful, and can be used for many things such
as query language procedures, views, and versions. The
power of this rule system is discussed in
[<XRef LinkEnd="ONG90" EndTerm="ONG90">]
<XRef LinkEnd="ONG90">
as well as
[<XRef LinkEnd="STON90b" EndTerm="STON90b">]
.
<XRef LinkEnd="STON90b">
.
</para>
<Sect1 id="querytree">
<Title>What is a Query Tree?</Title>
...
...
@@ -110,6 +110,7 @@
<Term>
the range table
</Term>
<indexterm><primary>range table</></>
<ListItem>
<Para>
The range table is a list of relations that are used in the query.
...
...
@@ -264,6 +265,7 @@
<Sect1 id="rules-views">
<Title>Views and the Rule System</Title>
<indexterm zone="rules-views"><primary>rules</><secondary>and views</></>
<Sect2>
<Title>Implementation of Views in <ProductName>Postgres</ProductName></Title>
...
...
@@ -831,8 +833,9 @@
</Sect3>
</Sect2>
<Sect2>
<Sect2
id="rules-views-update"
>
<Title>What about updating a view?</Title>
<indexterm zone="rules-views-update"><primary>views</><secondary>updating</></>
<Para>
What happens if a view is named as the target relation for an INSERT,
...
...
@@ -1688,15 +1691,15 @@ Merge Join
I think there are only a few situations out in the real
world, where such a construct is necessary. But
it makes me feel comfortable that it works.
</Para>
<
Note
>
<Title>The truth is</Title>
<
formalpara
>
<Title>The truth is
:
</Title>
<Para>
Doing this I found one more bug while writing this document.
But after fixing that I was a little amazed that it works at all.
</Para>
</Note>
</Para>
</formalpara>
</Sect2>
</Sect1>
...
...
doc/src/sgml/runtime.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
3 2001/11/08 23:39:22
petere Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
4 2001/11/12 19:19:39
petere Exp $
-->
<Chapter Id="runtime">
...
...
@@ -119,6 +119,7 @@ postgres> <userinput>initdb -D /usr/local/pgsql/data</userinput>
</para>
<para>
<indexterm><primary>LC_COLLATE</></>
One surprise you might encounter while running <command>initdb</command> is
a notice similar to this one:
<screen>
...
...
@@ -238,6 +239,7 @@ su -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' postgres
For <productname>FreeBSD</productname>, take a look at the file
<filename>contrib/start-scripts/freebsd</filename> in the
<productname>PostgreSQL</productname> source distribution.
<indexterm><primary>FreeBSD</></>
</para>
</listitem>
...
...
@@ -245,6 +247,7 @@ su -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' postgres
<para>
On <productname>OpenBSD</productname>, add the following lines
to the file <filename>/etc/rc.local</filename>:
<indexterm><primary>OpenBSD</></>
<programlisting>
if [ -x /usr/local/pgsql/bin/pg_ctl -a -x /usr/local/pgsql/bin/postmaster ]; then
su - -c '/usr/local/pgsql/bin/pg_ctl start -l /var/postgresql/log -s' postgres
...
...
@@ -257,6 +260,7 @@ fi
<listitem>
<para>
On <productname>Linux</productname> systems either add
<indexterm><primary>Linux</></>
<programlisting>
/usr/local/pgsql/bin/pg_ctl start -l logfile -D /usr/local/pgsql/data
</programlisting>
...
...
@@ -274,6 +278,7 @@ fi
<productname>Linux</productname> start scripts, depending on
preference, as an example and place the file at
<filename>/usr/local/etc/rc.d/postgresql</filename>.
<indexterm><primary>NetBSD</></>
</para>
</listitem>
...
...
@@ -282,6 +287,7 @@ fi
On <productname>Solaris</productname>, create a file called
<filename>/etc/init.d/postgresql</filename> to contain the following
single line:
<indexterm><primary>Solaris</></>
<programlisting>
su - postgres -c "/usr/local/pgsql/bin/pg_ctl start -l logfile -D /usr/local/pgsql/data"
</programlisting>
...
...
@@ -1013,6 +1019,7 @@ env PGOPTIONS='-c geqo=off' psql
<variablelist>
<varlistentry>
<term><varname>AUSTRALIAN_TIMEZONES</varname> (<type>bool</type>)</term>
<indexterm><primary>Australian time zones</></>
<listitem>
<para>
If set to true, <literal>CST</literal>, <literal>EST</literal>,
...
...
@@ -1025,6 +1032,7 @@ env PGOPTIONS='-c geqo=off' psql
<varlistentry>
<term><varname>AUTHENTICATION_TIMEOUT</varname> (<type>integer</type>)</term>
<indexterm><primary>timeout</><secondary>authentication</></indexterm>
<listitem>
<para>
Maximum time to complete client authentication, in seconds.
...
...
@@ -1042,6 +1050,10 @@ env PGOPTIONS='-c geqo=off' psql
<primary>deadlock</primary>
<secondary>timeout</secondary>
</indexterm>
<indexterm>
<primary>timeout</primary>
<secondary>deadlock</secondary>
</indexterm>
<term><varname>DEADLOCK_TIMEOUT</varname> (<type>integer</type>)</term>
<listitem>
...
...
@@ -1091,6 +1103,8 @@ env PGOPTIONS='-c geqo=off' psql
<varlistentry>
<term><varname>DYNAMIC_LIBRARY_PATH</varname> (<type>string</type>)</term>
<indexterm><primary>dynamic_library_path</></>
<indexterm><primary>dynamic loading</></>
<listitem>
<para>
If a dynamically loadable module needs to be opened and the
...
...
@@ -1298,6 +1312,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<varlistentry>
<term><varname>PORT</varname> (<type>integer</type>)</term>
<indexterm><primary>port</></>
<listitem>
<para>
The TCP port the server listens on; 5432 by default. This
...
...
@@ -1351,6 +1366,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<varlistentry>
<term><varname>SQL_INHERITANCE</varname> (<type>bool</type>)</term>
<indexterm><primary>inheritance</></>
<listitem>
<para>
This controls the inheritance semantics, in particular whether
...
...
@@ -1395,6 +1411,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<varlistentry>
<term><varname>TRANSFORM_NULL_EQUALS</varname> (<type>boolean</type>)</term>
<indexterm><primary>IS NULL</></>
<listitem>
<para>
When turned on, expressions of the form
...
...
@@ -1955,6 +1972,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<varlistentry>
<term><systemitem class="osname">BSD/OS</></term>
<indexterm><primary>BSD/OS</></>
<listitem>
<formalpara>
<title>Shared Memory</>
...
...
@@ -2020,6 +2038,9 @@ options "SEMMNU=120"
<term><systemitem class="osname">FreeBSD</></term>
<term><systemitem class="osname">NetBSD</></term>
<term><systemitem class="osname">OpenBSD</></term>
<indexterm><primary>FreeBSD</></>
<indexterm><primary>NetBSD</></>
<indexterm><primary>OpenBSD</></>
<listitem>
<para>
The options <varname>SYSVSHM</> and <varname>SYSVSEM</> need
...
...
@@ -2048,6 +2069,7 @@ options SEMMAP=256
<varlistentry>
<term><systemitem class="osname">HP-UX</></term>
<indexterm><primary>HP-UX</></>
<listitem>
<para>
The default settings tend to suffice for normal installations.
...
...
@@ -2068,6 +2090,7 @@ options SEMMAP=256
<varlistentry>
<term><systemitem class="osname">Linux</></term>
<indexterm><primary>Linux</></>
<listitem>
<para>
The default shared memory limit (both
...
...
@@ -2110,6 +2133,7 @@ kernel.shmmax = 134217728
<varlistentry>
<term><systemitem class="osname">SCO OpenServer</></term>
<indexterm><primary>SCO OpenServer</></>
<listitem>
<para>
In the default configuration, only 512 kB of shared memory per
...
...
@@ -2137,6 +2161,7 @@ kernel.shmmax = 134217728
<varlistentry>
<term><systemitem class="osname">Solaris</></term>
<indexterm><primary>Solaris</></>
<listitem>
<para>
At least in version 2.6, the maximum size of a shared memory
...
...
@@ -2169,6 +2194,7 @@ set semsys:seminfo_semmsl=32
<varlistentry>
<term><systemitem class="osname">UnixWare</></term>
<indexterm><primary>Unixware</></>
<listitem>
<para>
On <productname>UnixWare</> 7, the maximum size for shared
...
...
doc/src/sgml/xfunc.sgml
View file @
3c879e37
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.4
1 2001/11/01 04:07:29 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.4
2 2001/11/12 19:19:39 petere
Exp $
-->
<chapter id="xfunc">
<title id="xfunc-title">Extending <acronym>SQL</acronym>: Functions</title>
<indexterm zone="xfunc"><primary>function</></>
<sect1 id="xfunc-intro">
<title>Introduction</title>
...
...
@@ -70,6 +72,8 @@ $Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.41 2001/11/01 04:07:29 tgl E
<sect1 id="xfunc-sql">
<title>Query Language (<acronym>SQL</acronym>) Functions</title>
<indexterm zone="xfunc-sql"><primary>function</><secondary>SQL</></>
<para>
SQL functions execute an arbitrary list of SQL statements, returning
the result of the last query in the list, which must be a
...
...
@@ -83,6 +87,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.41 2001/11/01 04:07:29 tgl E
</para>
<para>
<indexterm><primary>SETOF</><seealso>function</></>
Alternatively, an SQL function may be declared to return a set,
by specifying the function's return type
as <literal>SETOF</literal> <replaceable>sometype</>. In this case
...
...
@@ -475,6 +480,8 @@ SELECT name, listchildren(name) FROM nodes;
<sect1 id="xfunc-internal">
<title>Internal Functions</title>
<indexterm zone="xfunc-internal"><primary>function</><secondary>internal</></>
<para>
Internal functions are functions written in C that have been statically
linked into the <productname>PostgreSQL</productname> server.
...
...
@@ -569,7 +576,7 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
<para>
If the name starts with the string <literal>$libdir</literal>,
that part is replaced by the PostgreSQL package library directory
name, which is determined at build time.
name, which is determined at build time.
<indexterm><primary>$libdir</></>
</para>
</listitem>
...
...
@@ -577,7 +584,7 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
<para>
If the name does not contain a directory part, the file is
searched for in the path specified by the configuration variable
<varname>dynamic_library_path</varname>.
<varname>dynamic_library_path</varname>.
<indexterm><primary>dynamic_library_path</></>
</para>
</listitem>
...
...
@@ -1406,7 +1413,7 @@ LANGUAGE C;
<itemizedlist>
<listitem>
<para>
Use <literal>pg_config --includedir-server</literal> to find
Use <literal>pg_config --includedir-server</literal>
<indexterm><primary>pg_config</></>
to find
out where the PostgreSQL server header files are installed on
your system (or the system that your users will be running
on). This option is new with PostgreSQL 7.2. For PostgreSQL
...
...
@@ -1492,6 +1499,8 @@ LANGUAGE C;
<sect1 id="xfunc-overload">
<title>Function Overloading</title>
<indexterm zone="xfunc-overload"><primary>overloading</></>
<para>
More than one function may be defined with the same SQL name, so long
as the arguments they take are different. In other words,
...
...
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