Re: what does opaque mean in create function?

From: knut(dot)suebert(at)web(dot)de
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: what does opaque mean in create function?
Date: 2002-02-18 21:23:42
Message-ID: 20020218212342.GC916@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pam Wampler 2002-02-18 22:18:47 examples of psql in shell script
Previous Message Tom Lane 2002-02-18 20:53:41 Re: Read-only attributes