Check type compatibility - Mailing list pgsql-sql

From Gianvito Pio
Subject Check type compatibility
Date
Msg-id 4B9236A8.3070603@gmail.com
Whole thread Raw
Responses Re: Check type compatibility
Re: Check type compatibility
List 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



pgsql-sql by date:

Previous
From: Petru Ghita
Date:
Subject: Does IMMUTABLE property propagate?
Next
From: Nilesh Govindarajan
Date:
Subject: Re: Check type compatibility