Search Postgresql Archives

Re: Cannot create canonicalization function for user-defined range type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 20, 2021 at 5:00 AM Avery Fischer <biggerfisch@xxxxxxxxx> wrote: 
ERROR:  PL/pgSQL functions cannot return type myrange

Am I misunderstanding the docs, or are they out-of-date, or is something else going on? How can I create a canonicalization function for my range type?

In short, I'm pretty sure shell types can only be referenced in C language functions.  The allowed types listing for pl/pgsql doesn't mention shell types and this error reinforces the fact that the omission is indeed a reflection of the fact that shell types are not allowed.

Thus one needs to write a C language function if one wishes to implement a custom range.

David J.
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux