mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove unused system table columns:
pg_language.lancompiler pg_operator.oprprec pg_operator.oprisleft pg_proc.proimplicit pg_proc.probyte_pct pg_proc.properbyte_cpu pg_proc.propercall_cpu pg_proc.prooutin_ratio pg_shadow.usetrace pg_type.typprtlen pg_type.typreceive pg_type.typsend Attempts to use the obsoleted attributes of pg_operator or pg_proc in the CREATE commands will be greeted by a warning. For pg_type, there is no warning (yet) because pg_dump scripts still contain these attributes. Also remove new but already obsolete spellings isVolatile, isStable, isImmutable in WITH clause. (Use new syntax instead.)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
Documentation of the system catalogs, directed toward PostgreSQL developers
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.47 2002/07/24 05:51:55 ishii Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.48 2002/07/24 19:11:06 petere Exp $
|
||||
-->
|
||||
|
||||
<chapter id="catalogs">
|
||||
@ -1734,13 +1734,6 @@
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>lancompiler</entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry></entry>
|
||||
<entry>not currently used</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>lanacl</entry>
|
||||
<entry><type>aclitem[]</type></entry>
|
||||
@ -1976,14 +1969,6 @@
|
||||
<entry>Owner (creator) of the operator</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>oprprec</entry>
|
||||
<entry><type>int2</type></entry>
|
||||
<entry></entry>
|
||||
<entry>precedence (currently unused, as precedences are hard-wired
|
||||
in the grammar)</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>oprkind</entry>
|
||||
<entry><type>char</type></entry>
|
||||
@ -1994,14 +1979,6 @@
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>oprisleft</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
<entry></entry>
|
||||
<entry>left-associativity (currently unused, as this is hard-wired
|
||||
in the grammar)</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>oprcanhash</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
@ -2185,13 +2162,6 @@
|
||||
<entry>not functional</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>proimplicit</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Function may be invoked as an implicit type coercion</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>proisstrict</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
@ -2252,34 +2222,6 @@
|
||||
<entry>A vector with the data types of the function arguments</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>probyte_pct</entry>
|
||||
<entry><type>int4</type></entry>
|
||||
<entry></entry>
|
||||
<entry>dead code</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>properbyte_cpu</entry>
|
||||
<entry><type>int4</type></entry>
|
||||
<entry></entry>
|
||||
<entry>dead code</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>propercall_cpu</entry>
|
||||
<entry><type>int4</type></entry>
|
||||
<entry></entry>
|
||||
<entry>dead code</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>prooutin_ratio</entry>
|
||||
<entry><type>int4</type></entry>
|
||||
<entry></entry>
|
||||
<entry>dead code</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>prosrc</entry>
|
||||
<entry><type>text</type></entry>
|
||||
@ -2471,13 +2413,6 @@
|
||||
<entry>User may create databases</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>usetrace</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
<entry></entry>
|
||||
<entry>not used</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>usesuper</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
@ -2843,13 +2778,6 @@
|
||||
<entry>Length of the storage representation of the type, -1 if variable length</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>typprtlen</entry>
|
||||
<entry><type>int2</type></entry>
|
||||
<entry></entry>
|
||||
<entry>unused</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>typbyval</entry>
|
||||
<entry><type>bool</type></entry>
|
||||
@ -2952,20 +2880,6 @@
|
||||
<entry>Output function</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>typreceive</entry>
|
||||
<entry><type>regproc</type></entry>
|
||||
<entry>pg_proc.oid</entry>
|
||||
<entry>unused</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>typsend</entry>
|
||||
<entry><type>regproc</type></entry>
|
||||
<entry>pg_proc.oid</entry>
|
||||
<entry>unused</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>typalign</entry>
|
||||
<entry><type>char</type></entry>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.40 2002/07/18 23:11:27 petere Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.41 2002/07/24 19:11:07 petere Exp $
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEFUNCTION">
|
||||
@ -257,16 +257,11 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>isImmutable</term>
|
||||
<term>isCachable</term>
|
||||
<term>isStable</term>
|
||||
<term>isVolatile</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Equivalent to <literal>IMMUTABLE</literal>,
|
||||
<literal>STABLE</literal>, <literal>VOLATILE</literal>.
|
||||
<literal>isCachable</literal> is an obsolete equivalent of
|
||||
<literal>isImmutable</literal>; it's still accepted for
|
||||
<literal>IMMUTABLE</literal>; it's still accepted for
|
||||
backwards-compatibility reasons.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_language.sgml,v 1.25 2002/06/20 15:44:06 momjian Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_language.sgml,v 1.26 2002/07/24 19:11:07 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -221,14 +221,13 @@ ERROR: PL handler function <replaceable class="parameter">funcname</replaceable
|
||||
lanpltrusted | boolean |
|
||||
lanplcallfoid | oid |
|
||||
lanvalidator | oid |
|
||||
lancompiler | text |
|
||||
lanacl | aclitem[] |
|
||||
|
||||
lanname | lanispl | lanpltrusted | lanplcallfoid | lanvalidator | lancompiler | lanacl
|
||||
-------------+---------+--------------+---------------+--------------+-------------+--------
|
||||
internal | f | f | 0 | 2246 | n/a |
|
||||
c | f | f | 0 | 2247 | /bin/cc |
|
||||
sql | f | t | 0 | 2248 | postgres | {=U}
|
||||
lanname | lanispl | lanpltrusted | lanplcallfoid | lanvalidator | lanacl
|
||||
-------------+---------+--------------+---------------+--------------+--------
|
||||
internal | f | f | 0 | 2246 |
|
||||
c | f | f | 0 | 2247 |
|
||||
sql | f | t | 0 | 2248 | {=U}
|
||||
</screen>
|
||||
</para>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.29 2002/05/18 15:44:47 petere Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_type.sgml,v 1.30 2002/07/24 19:11:07 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -24,10 +24,8 @@ PostgreSQL documentation
|
||||
CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <replaceable class="parameter">input_function</replaceable>, OUTPUT = <replaceable class="parameter">output_function</replaceable>
|
||||
, INTERNALLENGTH = { <replaceable
|
||||
class="parameter">internallength</replaceable> | VARIABLE }
|
||||
[ , EXTERNALLENGTH = { <replaceable class="parameter">externallength</replaceable> | VARIABLE } ]
|
||||
[ , DEFAULT = <replaceable class="parameter">default</replaceable> ]
|
||||
[ , ELEMENT = <replaceable class="parameter">element</replaceable> ] [ , DELIMITER = <replaceable class="parameter">delimiter</replaceable> ]
|
||||
[ , SEND = <replaceable class="parameter">send_function</replaceable> ] [ , RECEIVE = <replaceable class="parameter">receive_function</replaceable> ]
|
||||
[ , PASSEDBYVALUE ]
|
||||
[ , ALIGNMENT = <replaceable class="parameter">alignment</replaceable> ]
|
||||
[ , STORAGE = <replaceable class="parameter">storage</replaceable> ]
|
||||
@ -63,16 +61,6 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><replaceable class="parameter">externallength</replaceable></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A literal value, which specifies the external (displayed) length of
|
||||
the new type.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><replaceable class="parameter">input_function</replaceable></term>
|
||||
<listitem>
|
||||
@ -126,26 +114,6 @@ CREATE TYPE <replaceable class="parameter">typename</replaceable> ( INPUT = <rep
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><replaceable class="parameter">send_function</replaceable></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of a function, created by <command>CREATE FUNCTION</command>, which
|
||||
converts data of this type into a form suitable for
|
||||
transmission to another machine.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><replaceable class="parameter">receive_function</replaceable></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of a function, created by <command>CREATE FUNCTION</command>, which
|
||||
converts data of this type from a form suitable for
|
||||
transmission from another machine to internal form.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><replaceable class="parameter">alignment</replaceable></term>
|
||||
@ -259,13 +227,6 @@ CREATE TYPE
|
||||
length of this value of the type.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The external representation length is similarly specified using the
|
||||
<replaceable class="parameter">externallength</replaceable>
|
||||
keyword. (This value is not presently used, and is typically omitted,
|
||||
letting it default to <option>VARIABLE</option>.)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To indicate that a type is an array,
|
||||
specify the type of the array
|
||||
@ -292,18 +253,6 @@ CREATE TYPE
|
||||
clause attached to a particular column.)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The optional arguments
|
||||
<replaceable class="parameter">send_function</replaceable> and
|
||||
<replaceable class="parameter">receive_function</replaceable>
|
||||
are not currently used, and are usually omitted (allowing them
|
||||
to default to the
|
||||
<replaceable class="parameter">output_function</replaceable> and
|
||||
<replaceable class="parameter">input_function</replaceable>
|
||||
respectively). These functions may someday be resurrected for use
|
||||
in specifying machine-independent binary representations.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The optional flag, <option>PASSEDBYVALUE</option>, indicates that
|
||||
values of this data type are passed
|
||||
|
Reference in New Issue
Block a user