Re: Where are user-defined types stored/viewed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: btober(at)seaworthysys(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Where are user-defined types stored/viewed
Date: 2003-09-29 15:51:18
Message-ID: 24884.1064850678@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<btober(at)seaworthysys(dot)com> writes:
> After I execute a command like
> CREATE TYPE employee_wage_journal_sum AS (supplier_pk integer,
> employee_pk integer,
> hourly_dollars double precision,
> annual_dollars double precision);

> I don't see the new type show up anywhere in pgAdminII.

Probably not. Stand-alone composite types (like the above) are a new
feature in 7.3, and pgAdminII likely doesn't know about them.

You might try pgAdmin III, which just got out of beta I believe.

> but I see only the name itself (and a lot of "*id" columns that probably
> reference something relevant), but I don't know how to get the actual
> definition back so that I can use an existing type definition as the
> basis for modification when application design changes are required.

There's always "pg_dump -s" to extract such stuff.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2003-09-29 15:51:54 Re: Modification Dates
Previous Message Achilleus Mantzios 2003-09-29 15:46:44 Conditional row grained + FK dependency oriented lazy replication