Check type compatibility

From: Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Check type compatibility
Date: 2010-03-06 11:04:08
Message-ID: 4B9236A8.3070603@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,
is there a way to check if two attribute are type compatible (for
example integer and serial, integer and integer, character varying and
text, etc..)?

Example:
IF (compatible (table1.att1, table2.att2)) THEN
...
ELSE
...
END IF;

Thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Nilesh Govindarajan 2010-03-06 11:22:12 Re: Check type compatibility
Previous Message Jasen Betts 2010-03-06 08:02:42 Re: Does IMMUTABLE property propagate?