[postgis-devel] Re: [postgis-users] create tables smarter

Obe, Regina robe.dnd at cityofboston.gov
Thu Jun 5 08:15:20 PDT 2008


Yes you can pull the column types from the system tables.

e.g.

infomation_schema.tables (lists both tables and views)
infomation_schema.columns (lists all columns and datatypes even for
views)

are psuedo-ansi standard views built off of system tables and it lists
all the column data types.




-----Original Message-----
From: postgis-devel-bounces at postgis.refractions.net
[mailto:postgis-devel-bounces at postgis.refractions.net] On Behalf Of Mark
Cave-Ayland
Sent: Thursday, June 05, 2008 11:03 AM
To: PostGIS Development Discussion
Subject: Re: [postgis-devel] Re: [postgis-users] create tables smarter

Paul Ramsey wrote:

> I'd propose the utility process by basically a side effect of ANALYZE
> and clean up everything about GEOMETRY_COLUMNS. Remove dead entries,
> find new ones, etc, rather than just restricting itself to the one
> table it was (potentially) called on.
> 
> P.

In the case of using typmod, views would be interesting; as far as I can

tell, I think we can just pull the column types (which would include the

typmod) straight from pg_attribute using the view oid, but it would 
require some more experimentation...


ATB,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
_______________________________________________
postgis-devel mailing list
postgis-devel at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.




More information about the postgis-devel mailing list