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
807cb000
Commit
807cb000
authored
Jan 19, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify STABLE function documentation to highlight how such functions
can be optimized.
parent
efbe674e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
doc/src/sgml/xfunc.sgml
doc/src/sgml/xfunc.sgml
+8
-8
No files found.
doc/src/sgml/xfunc.sgml
View file @
807cb000
<!--
$PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.1
09 2005/11/29 01:46:54 alvherre
Exp $
$PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.1
10 2006/01/19 22:52:08 momjian
Exp $
-->
<sect1 id="xfunc">
...
...
@@ -899,13 +899,13 @@ CREATE FUNCTION test(int, int) RETURNS int
<para>
A <literal>STABLE</> function cannot modify the database and is
guaranteed to return the same results given the same arguments
for all
calls within a single surrounding query. This category
allows the optimizer to optimize away multiple calls of the function
within a single query. In particular, it is safe to use an expression
containing such a function in an index scan condition. (Since
an
index scan will evaluate the comparison value only once, not once at
each row, it is not valid to use a <literal>VOLATILE</> function i
n
an
index scan condition.)
for all
rows within a single statement. This category allows the
optimizer to optimize multiple calls of the function to a single
call. In particular, it is safe to use an expression containing
such a function in an index scan condition. (Since an index sc
an
will evaluate the comparison value only once, not once at each
row, it is not valid to use a <literal>VOLATILE</> function in a
n
index scan condition.)
</para>
</listitem>
<listitem>
...
...
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