Re: Getting list of supported types in Postgres

From: Ivan Radovanovic <radovanovic(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: Getting list of supported types in Postgres
Date: 2013-08-15 15:23:03
Message-ID: 520CF257.9000000@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/15/13 17:15, Tom Lane napisa:
> Ivan Radovanovic<radovanovic(at)gmail(dot)com> writes:
>> Thanks Adrian, but question was how to decide which types are indexable
>
> A little bit of research in the system-catalogs documentation will show
> you how to find the types that can be accepted by some index opclass
> (hint: "pg_opclass.opcintype::regtype").
>
> As far as the other question goes, you could look for types that have a
> pg_type.typmodin function -- though I'm not sure whether you want to
> consider every possible usage of typmods as being a "precision".
>
> regards, tom lane

Thanks Tom, I will take type definitions from documentation (as Adrian
suggested), and it looks like your pg_opclass suggestion will solve
indexability question. Case closed I guess :-)

Regards,
Ivan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-08-15 15:27:15 Re: Getting list of supported types in Postgres
Previous Message Tom Lane 2013-08-15 15:15:44 Re: Getting list of supported types in Postgres