dbTalk Databases Forums  

Teasing a type definition from system tables

comp.databases.postgresql comp.databases.postgresql


Discuss Teasing a type definition from system tables in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Don Y
 
Posts: n/a

Default Teasing a type definition from system tables - 01-31-2012 , 09:43 AM






Hi,

For "non-standard" types (e.g., composite, user-defined), is there
any way of teasing the definition out of the system catalog?

E.g.,

CREATE TYPE foo AS (
control1 point,
control2 point,
dest point
);

CREATE TYPE bar AS (
purpose text,
action foo,
when date
);

It seems like type definitions fall into a black hole...

Thx,
--don

Reply With Quote
  #2  
Old   
Username
 
Posts: n/a

Default Re: Teasing a type definition from system tables - 02-01-2012 , 05:41 PM






Hi Don,

Quote:
For "non-standard" types (e.g., composite, user-defined), is there
any way of teasing the definition out of the system catalog?
Have a look at MogwaiERDesignerNG and its reverseengineering
capabilities: http://sourceforge.net/projects/mogwai/

The way it is done you can find in

http://mogwai.svn.sourceforge.net/vi...22&view=markup

in the lines

194 for enumerations,
233 for composite types
312 for external types (not implemented yet)

HTH

regards

Reply With Quote
  #3  
Old   
Jasen Betts
 
Posts: n/a

Default Re: Teasing a type definition from system tables - 02-03-2012 , 04:47 AM



On 2012-01-31, Don Y <this (AT) isnotme (DOT) com> wrote:
Quote:
Hi,

For "non-standard" types (e.g., composite, user-defined), is there
any way of teasing the definition out of the system catalog?

see how psql does it:

psql -E
\d bar


--
⚂⚃ 100% natural

--- Posted via news://freenews.netfront.net/ - Complaints to news (AT) netfront (DOT) net ---

Reply With Quote
  #4  
Old   
Don Y
 
Posts: n/a

Default Re: Teasing a type definition from system tables - 02-05-2012 , 04:18 AM



On 2/1/2012 4:41 PM, Username wrote:
Quote:
Hi Don,

For "non-standard" types (e.g., composite, user-defined), is there
any way of teasing the definition out of the system catalog?

Have a look at MogwaiERDesignerNG and its reverseengineering
capabilities: http://sourceforge.net/projects/mogwai/

The way it is done you can find in
in the lines

194 for enumerations,
233 for composite types
312 for external types (not implemented yet)
Excellent! I may actually look into using the tool, itself.

Thanks!

Reply With Quote
  #5  
Old   
Don Y
 
Posts: n/a

Default Re: Teasing a type definition from system tables - 02-08-2012 , 02:18 AM



Hi Jasen,

On 2/3/2012 3:47 AM, Jasen Betts wrote:
Quote:
On 2012-01-31, Don Y<this (AT) isnotme (DOT) com> wrote:

For "non-standard" types (e.g., composite, user-defined), is there
any way of teasing the definition out of the system catalog?


see how psql does it:

psql -E
\d bar
Thanks! I'll try that next time I am logged onto the server.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.