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
c82c9559
Commit
c82c9559
authored
Oct 23, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor updates/corrections for CREATE/DROP FUNCTION/AGGREGATE/OPERATOR.
parent
9ace0318
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
13 deletions
+24
-13
doc/src/sgml/ref/drop_aggregate.sgml
doc/src/sgml/ref/drop_aggregate.sgml
+3
-2
doc/src/sgml/ref/drop_operator.sgml
doc/src/sgml/ref/drop_operator.sgml
+17
-7
doc/src/sgml/xaggr.sgml
doc/src/sgml/xaggr.sgml
+2
-2
doc/src/sgml/xfunc.sgml
doc/src/sgml/xfunc.sgml
+2
-2
No files found.
doc/src/sgml/ref/drop_aggregate.sgml
View file @
c82c9559
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_aggregate.sgml,v 1.
8 2000/07/17 03:04:41
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_aggregate.sgml,v 1.
9 2000/10/23 00:46:07
tgl Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -47,7 +47,8 @@ DROP AGGREGATE <replaceable class="PARAMETER">name</replaceable> <replaceable cl
...
@@ -47,7 +47,8 @@ DROP AGGREGATE <replaceable class="PARAMETER">name</replaceable> <replaceable cl
<term><replaceable class="parameter">type</replaceable></term>
<term><replaceable class="parameter">type</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The type of an existing aggregate function.
The input datatype of an existing aggregate function,
or <literal>*</literal> if the function accepts any input type.
(Refer to the <citetitle>PostgreSQL User's Guide</citetitle> for
(Refer to the <citetitle>PostgreSQL User's Guide</citetitle> for
further information about data types.)
further information about data types.)
<comment>This should become a cross-reference rather than a
<comment>This should become a cross-reference rather than a
...
...
doc/src/sgml/ref/drop_operator.sgml
View file @
c82c9559
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.
7 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_operator.sgml,v 1.
8 2000/10/23 00:46:07 tgl
Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -24,7 +24,7 @@ Postgres documentation
...
@@ -24,7 +24,7 @@ Postgres documentation
<date>1999-07-20</date>
<date>1999-07-20</date>
</refsynopsisdivinfo>
</refsynopsisdivinfo>
<synopsis>
<synopsis>
DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">
type</replaceable> | NONE [,...]
)
DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable class="PARAMETER">
lefttype</replaceable> | NONE , <replaceable class="PARAMETER">righttype</replaceable> | NONE
)
</synopsis>
</synopsis>
<refsect2 id="R2-SQL-DROPOPERATOR-1">
<refsect2 id="R2-SQL-DROPOPERATOR-1">
...
@@ -45,10 +45,20 @@ DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable cla
...
@@ -45,10 +45,20 @@ DROP OPERATOR <replaceable class="PARAMETER">id</replaceable> ( <replaceable cla
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><replaceable class="parameter">type</replaceable></term>
<term><replaceable class="parameter">
left
type</replaceable></term>
<listitem>
<listitem>
<para>
<para>
The type of function parameters.
The type of the operator's left argument; write <literal>NONE</literal> if the
operator has no left argument.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">righttype</replaceable></term>
<listitem>
<para>
The type of the operator's right argument; write <literal>NONE</literal> if the
operator has no right argument.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -127,7 +137,7 @@ ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">ope
...
@@ -127,7 +137,7 @@ ERROR: RemoveOperator: right unary operator '<replaceable class="PARAMETER">ope
</para>
</para>
<para>
<para>
The left or right type of a left or right unary
The left or right type of a left or right unary
operator, respectively, m
ay
be specified as <literal>NONE</literal>.
operator, respectively, m
ust
be specified as <literal>NONE</literal>.
</para>
</para>
<refsect2 id="R2-SQL-DROPOPERATOR-3">
<refsect2 id="R2-SQL-DROPOPERATOR-3">
...
@@ -166,13 +176,13 @@ DROP OPERATOR ^ (int4, int4);
...
@@ -166,13 +176,13 @@ DROP OPERATOR ^ (int4, int4);
</programlisting>
</programlisting>
</para>
</para>
<para>
<para>
Remove left unary negation operator (<literal>
b !
</literal>) for booleans:
Remove left unary negation operator (<literal>
! b
</literal>) for booleans:
<programlisting>
<programlisting>
DROP OPERATOR ! (none, bool);
DROP OPERATOR ! (none, bool);
</programlisting>
</programlisting>
</para>
</para>
<para>
<para>
Remove right unary factorial operator (<literal>
! i
</literal>) for
Remove right unary factorial operator (<literal>
i !
</literal>) for
<literal>int4</literal>:
<literal>int4</literal>:
<programlisting>
<programlisting>
DROP OPERATOR ! (int4, none);
DROP OPERATOR ! (int4, none);
...
...
doc/src/sgml/xaggr.sgml
View file @
c82c9559
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/xaggr.sgml,v 1.
8 2000/07/17 03:04:40
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/xaggr.sgml,v 1.
9 2000/10/23 00:46:06
tgl Exp $
-->
-->
<chapter id="xaggr">
<chapter id="xaggr">
...
@@ -100,7 +100,7 @@ SELECT complex_sum(a) FROM test_complex;
...
@@ -100,7 +100,7 @@ SELECT complex_sum(a) FROM test_complex;
CREATE AGGREGATE avg (
CREATE AGGREGATE avg (
sfunc = float8_accum,
sfunc = float8_accum,
basetype = float8,
basetype = float8,
stype =
_float8
,
stype =
float8[]
,
finalfunc = float8_avg,
finalfunc = float8_avg,
initcond = '{0,0}'
initcond = '{0,0}'
);
);
...
...
doc/src/sgml/xfunc.sgml
View file @
c82c9559
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.2
1 2000/09/29 20:21:34 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.2
2 2000/10/23 00:46:06 tgl
Exp $
-->
-->
<chapter id="xfunc">
<chapter id="xfunc">
...
@@ -108,7 +108,7 @@ SELECT tp1( 17,100.0);
...
@@ -108,7 +108,7 @@ SELECT tp1( 17,100.0);
EMP, and retrieves multiple results:
EMP, and retrieves multiple results:
<programlisting>
<programlisting>
CREATE FUNCTION hobbies (EMP) RETURNS SET
OF hobbies
CREATE FUNCTION hobbies (EMP) RETURNS SETOF hobbies
AS 'SELECT hobbies.* FROM hobbies
AS 'SELECT hobbies.* FROM hobbies
WHERE $1.name = hobbies.person'
WHERE $1.name = hobbies.person'
LANGUAGE 'sql';
LANGUAGE 'sql';
...
...
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