Re: [pgadmin-hackers] OF TYPE without SCHEMA specified in TABLE creation interface - Mailing list pgsql-admin

From Ashesh Vashi
Subject Re: [pgadmin-hackers] OF TYPE without SCHEMA specified in TABLE creation interface
Date
Msg-id CAG7mmozJeT7QE8Tazwz8QAgytXfk4HO+g3C3QuKX8VWmf36XrQ@mail.gmail.com
Whole thread Raw
In response to OF TYPE without SCHEMA specified in TABLE creation interface  ("liuyuanyuan" <liuyuanyuangogo@gmail.com>)
List pgsql-admin
Hi Sanket,

Can you please take a look at this?


--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA:
Enterprise PostgreSQL Company

 

http://www.linkedin.com/in/asheshvashi



On Wed, Aug 20, 2014 at 7:27 AM, liuyuanyuan <liuyuanyuangogo@gmail.com> wrote:

 

Hi!

I got a problem when I create a table of type by table creation interface of pgadmin.

Because OF TYPE without SCHEMA specified, the table creation failed.

I think the type should have schema specified when its schema being not ‘public’, please check.

A example as follow

First step:

CREATE TYPE test.person AS

(

   id integer,

   name character varying COLLATE pg_catalog."POSIX"

);

 

Second step:

 

type has no schema specified :

   

Then I click button OK, it got error as follow:

 

At last, I add schema to type, then successfully:

 

CREATE TABLE test.test

OF test.person

WITH (

  OIDS = FALSE

);

 

 

Best regard!

Yours,

Jasmine

 


Attachment

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade FAIL: can't find tablespaces
Next
From: Craig James
Date:
Subject: Re: pg_upgrade FAIL: can't find tablespaces