Re: typemode for variable types

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Mohsen SM <mohsensoodkhah(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: typemode for variable types
Date: 2014-02-24 20:16:51
Message-ID: 20140224201651.GK16943@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-02-24 20:24:10 Re: typemode for variable types
Previous Message Christian Kruse 2014-02-24 19:49:05 Re: Patch: show xid and xmin in pg_stat_activity and pg_stat_replication