Methods declaration - Mailing list pgsql-sql

From Gianvito Pio
Subject Methods declaration
Date
Msg-id 5eca56860903162339x50bb8bc1v76aab7157e9f57f8@mail.gmail.com
Whole thread Raw
Responses Re: Methods declaration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hello,<br /> I've just started working with ordbms. I'm searching for differences between postgresql and oracle...<br
/><br/> Btw, I've found it's possible to declare a method for a specific type in oracle...so if I create a type MyType,
Ican associate it also a method MyMethod....using the costructors:<br /><br /> CREATE TYPE MyType AS OBJECT<br />( <br
/>...<br/>...<br />...<br />MEMBER FUNCTION MyMethod(parameterName  parameterType)<br />RETURN ReturnType);<br /><br />
Isit possible to do the same with postgreSql? I've found the CREATE FUNCTION command...but it seems it creates global
functions,not associated to a particular type...<br /><br /> Thanks  

pgsql-sql by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Exclude fields from SELECT command
Next
From: sathiya psql
Date:
Subject: diff b/w varchar(N) & text