From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Rostron <mrostron@ql2.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: how do i query the type of an object?
Date: Wed, 11 Aug 2010 21:39:58 -0400
Message-ID: <1823.1281577198@sss.pgh.pa.us> (raw)
In-Reply-To: <FD020D3E50E7FA479567872E5F5F31E30459E0E83C@ex01.corp.ql2.com>
References: <FD020D3E50E7FA479567872E5F5F31E30459E0E83C@ex01.corp.ql2.com>
Mark Rostron <mrostron@ql2.com> writes:
> Is there some way to query the data-type of '<some value expression>'?
There's a SQL-standard construct called IS OF, and a function called
pg_typeof, but it's not real clear whether either of those would help
you.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mrostron@ql2.com
Subject: Re: how do i query the type of an object?
In-Reply-To: <1823.1281577198@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox