Re: what does opaque mean in create function?

Поиск
Список
Период
Сортировка
От knut.suebert@web.de
Тема Re: what does opaque mean in create function?
Дата
Msg-id 20020218212342.GC916@web.de
обсуждение исходный текст
Ответ на what does opaque mean in create function?  (Pam Wampler <Pam_Wampler@taylorwhite.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Read-only attributes
Следующее
От: Pam Wampler
Дата:
Сообщение: examples of psql in shell script