pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taral <taral@cyberjunkie.com>
To: Michael Robinson <robinson@public.bta.net.cn>
To: pgsql-interfaces@hub.org
Subject: RE: [INTERFACES] Updated IDL with considerations for COSS
Date: Mon, 16 Nov 1998 09:41:42 -0600
Message-ID: <000801be1177$9b9a1760$8a14f7d0@taral.dobiecenter.com> (raw)
In-Reply-To: <199811161531.XAA09964@public.bta.net.cn>


> In the future, we will want to implement an Interface Repository to map
> the PostgreSQL type tables to CORBA IDL.  Since that involves an
> indeterminate
> number of user-defined types, I recommend carving out namespace for that
> purpose at the beginning, e.g.:
>
>      typedef short pgtype_int2;
>      typedef long pgtype_int4;

Use of _ is discouraged since in the IDL-to-C mapping _ replaces ::. However
we can do:

module PostgreSQL { // Note we already separate our namespace
  module Types {
    typedef short int2;
    typedef short int4;
    // etc.
  }

// Stuff

}

>
> >    struct int8type {
> >        long lsw;
> >        long msw;
> >    };
>
> I would recommend that fixed-length PostgreSQL types be defined as little-
> endian arrays of long or octet type, whichever is appropriate.  E.g.:
>
>      typedef long pgtype_int8[2];
>      typedef long pgtype_int28[4];
>      typedef octet pgtype_macaddr[6];
>      typedef octet pgtype_filename[256];
>
> Etc.  It's more orthogonal that way.  But again, if prevailing practice is
> something else, we should look closely at that.  Sign extension of multi-
> long integral types is another problem that someone has presumably already
> solved for us.

No, you're quite right... I did most of my study of the CORBA 2.2 spec at
1am... IDL modified.

Taral

P.S. Would it be possible to make a pgsql/src/corba module and let me check
this IDL file into it? That way I don't have to keep reposting it.




view thread (5+ messages)  latest in thread

Message-ID: <000801be1177$9b9a1760$8a14f7d0@taral.dobiecenter.com>
Permalink:  ../000801be1177$9b9a1760$8a14f7d0@taral.dobiecenter.com/
Also on:    postgresql.org/message-id/000801be1177$9b9a1760$8a14f7d0@taral.dobiecenter.com

 · 

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: taral@cyberjunkie.com, robinson@public.bta.net.cn, pgsql-interfaces@hub.org
  Subject: RE: [INTERFACES] Updated IDL with considerations for COSS
  In-Reply-To: <000801be1177$9b9a1760$8a14f7d0@taral.dobiecenter.com>

* 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