Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AD130632EA6 for ; Wed, 11 Aug 2010 22:40:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 41163-04 for ; Thu, 12 Aug 2010 01:40:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E8CAA632CFD for ; Wed, 11 Aug 2010 22:40:00 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o7C1dxQ5001824; Wed, 11 Aug 2010 21:39:59 -0400 (EDT) To: Mark Rostron cc: "pgsql-admin@postgresql.org" Subject: Re: how do i query the type of an object? In-reply-to: References: Comments: In-reply-to Mark Rostron message dated "Wed, 11 Aug 2010 17:37:20 -0700" Date: Wed, 11 Aug 2010 21:39:58 -0400 Message-ID: <1823.1281577198@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/90 X-Sequence-Number: 35339 Mark Rostron writes: > Is there some way to query the data-type of ''? 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