MAK
MAK

Reputation: 7260

Get created type in PostgreSQL

I am using PostgreSQL 9.3 database.

I want to get the created types stored in the database.

Example:

If I create the types:

create type t1 as
(
  cola varchar,
  colb varchar
);

How can I get the details of them in pgAdmin III?

Upvotes: 0

Views: 65

Answers (1)

vitvly
vitvly

Reputation: 3638

Use pg_type system catalog:

SELECT * FROM PG_TYPE WHERE typname='t1';

Upvotes: 1

Related Questions