newbie question on database structure

From: "JustSomeGuy" <nope(at)nottelling(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: newbie question on database structure
Date: 2004-01-15 17:51:15
Message-ID: nqANb.111270$JQ1.18511@pd7tw1no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want to design a data base that can hold the following structure....

struct {
unsigned short a;
unsigned short b;
unsigned int len;
unsigned char *data;
} myObject;

a and b describe the type of object, len is the number of bytes that
are required to hold the object.
and of course data points to the object....

Of course the size of the objects is not a constant so this is where I
get confused...
How do I define a database to hold these in postgres?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Ganainm 2004-01-15 17:56:43 Re: serverless postgresql
Previous Message Michael Glaesemann 2004-01-15 17:47:55 Re: Bug and/or feature? Complex data types in tables...