Re: typemode for variable types - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: typemode for variable types
Date
Msg-id 20140224201651.GK16943@momjian.us
Whole thread Raw
In response to typemode for variable types  (Mohsen SM <mohsensoodkhah@gmail.com>)
Responses Re: typemode for variable types  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Sun, Feb 23, 2014 at 07:50:08AM +0330, Mohsen SM wrote:
> Hello.
> I have a new type similar to varchar.
> I want to fine how did I can to calculate typemod
> and where must I calculate typemod for this type.

Well, typmods are type-specific, so there is no official way to
calculate it.  I would look at how an existing type uses typmod and copy
that.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



pgsql-hackers by date:

Previous
From: Christian Kruse
Date:
Subject: Re: Patch: show xid and xmin in pg_stat_activity and pg_stat_replication
Next
From: Alvaro Herrera
Date:
Subject: Re: typemode for variable types