pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Verstak <averstak@vt.edu>
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Type mappings
Date: Tue, 07 Mar 2000 10:19:42 -0500
Message-ID: <200003071519.KAA60856@averstak.campus.vt.edu> (raw)
In-Reply-To: <200003070746.IAA08297@ns.aura.de>


tomas@aura.de wrote:
> Obe of the things squile tries is to transform the database
> types into native language types.
> 
> For PostgreSQL this would imply looking things up in the
> pg_types table and figuring out what to do.
...
> - jdbc looks the type name (via the oid, as given by PQftype())
>   and decides based on that. The result is cached (which to me
>   looks a bit problematic, since the contents of the table could
>   change at run time, but I may be too pedantic here ;)

  Types don't change too often.  Not often enough to hurt the
  UI's anyway, which is what JDBC is for.  On the other hand,
  speed gain from caching type information is significant.
  
> It would be interesting to write up a type mapper which could be
> of some more general utility (no idea whether this would be
> feasible at all). I'd be willing to give it a try.

  It is a useful thing.  E.g. my project needs conversion between
  SDDF, SQL, (restricted form of) Prolog, and Jess (don't ask
  why--it's a long story).  I would definitely appreciate a
  generic type mapper.  It is feasible too.  My chicken scratch
  has worked so far. :)
  
> I would appreciate any pointers in this directions.

  JDBC source has the queries you need.  PostgreSQL manual
  decribes the types.  It's just a matter of sitting down
  and writing a pretty wrapper/converter.
  
  =alex



view thread (3+ messages)  latest in thread

Message-ID: <200003071519.KAA60856@averstak.campus.vt.edu>
Permalink:  ../200003071519.KAA60856@averstak.campus.vt.edu/
Also on:    postgresql.org/message-id/200003071519.KAA60856@averstak.campus.vt.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: averstak@vt.edu
  Subject: Re: [INTERFACES] Type mappings
  In-Reply-To: <200003071519.KAA60856@averstak.campus.vt.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox