| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Ivan Radovanovic <radovanovic(at)gmail(dot)com> |
| 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:15:44 |
| Message-ID: | 5400.1376579744@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ivan Radovanovic | 2013-08-15 15:23:03 | Re: Getting list of supported types in Postgres |
| Previous Message | Ivan Radovanovic | 2013-08-15 15:07:05 | Re: Getting list of supported types in Postgres |