newbie question on database structure - Mailing list pgsql-general

From JustSomeGuy
Subject newbie question on database structure
Date
Msg-id nqANb.111270$JQ1.18511@pd7tw1no
Whole thread Raw
Responses Re: newbie question on database structure
List 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?




pgsql-general by date:

Previous
From: Shri Shrikumar
Date:
Subject: Finding if a function / stored procedure updated the database
Next
From: Curt Sampson
Date:
Subject: Solution to UPDATE or INSERT Problem