Re: what does opaque mean in create function? - Mailing list pgsql-novice

From knut.suebert@web.de
Subject Re: what does opaque mean in create function?
Date
Msg-id 20020218212342.GC916@web.de
Whole thread Raw
In response to what does opaque mean in create function?  (Pam Wampler <Pam_Wampler@taylorwhite.com>)
List pgsql-novice
Pam Wampler schrieb:
> In a function what does opaque mean?

If you'd knew it, you had found it in the docs: ;-)

  "23.1. Installing Procedural Languages

   [...]

   The special return type of OPAQUE tells the database that this
   function does not return one of the defined SQL data types and is not
   directly usable in SQL statements."

  "24.3. Trigger Procedures

   PL/pgSQL can be used to define trigger procedures. They are created
   with the usual CREATE FUNCTION command as a function with no arguments
   and a return type of OPAQUE."

At least one possibility for the use of opaque: it returns nothing (or
something internal) for functions used in triggers.

G,
KS

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Read-only attributes
Next
From: Pam Wampler
Date:
Subject: examples of psql in shell script