pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lonnie Cumberland <lonnie_cumberland@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: New Type Internal Length
Date: Thu, 19 Apr 2001 11:29:38 -0700 (PDT)
Message-ID: <20010419182938.58520.qmail@web12507.mail.yahoo.com> (raw)

Hello All,

I am writing up a new data type forthe project that I am working on and am
wondering if someone can tell me if the "internallength" represents the size of
my structure in "C" 

----------------------------------------------------------------------------
CREATE TYPE complex (
   internallength = 16,
   input = complex_in,
   output = complex_out
); 
----------------------------------------------------------------------------

My "C" structure is composed of two fields:

typedef struct test 
{
	char a[400];
	char b[1300];
} test;

the in/out functions are almost the same as the ones in "complex" example.

I currently only have one test function but it only returns type "test" and
does not receive it in the calling parameters;

test *mytest(int4 number, text *something);

Cheers,
Lonnie


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Message-ID: <20010419182938.58520.qmail@web12507.mail.yahoo.com>
Permalink:  ../20010419182938.58520.qmail@web12507.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010419182938.58520.qmail@web12507.mail.yahoo.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: lonnie_cumberland@yahoo.com
  Subject: Re: New Type Internal Length
  In-Reply-To: <20010419182938.58520.qmail@web12507.mail.yahoo.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