Re: question about information_schema - Mailing list pgsql-hackers

From Kris Jurka
Subject Re: question about information_schema
Date
Msg-id Pine.BSO.4.56.0405180903100.18170@leary.csoft.net
Whole thread Raw
In response to question about information_schema  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-hackers

On Tue, 18 May 2004, Dave Cramer wrote:

> If I do create type testint8 as (i int8) and then select typbasetype
> from pg_type where typname='testint8' the value is 0?

You've created a complex type here, not a domain.  See typtype and 
typrelid for this case.

create domain testint8 as int8;  will do what you were expecting.

Kris Jurka


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Relocatable installs
Next
From: Robert Treat
Date:
Subject: Re: Call for 7.5 feature completion