user defined types and strings - Mailing list pgsql-novice

From Kjetil Haaland
Subject user defined types and strings
Date
Msg-id 200502231401.36646.kjetil.haaland@student.uib.no
Whole thread Raw
Responses Re: user defined types and strings
List pgsql-novice
Hi

I have made a user defined type which has a string of variable length and and
an integer value. Since the string is of variable length i have used a
pointer for the string. When i use this type as a column in a table and
inserts values into it, the string will go away. I understand that this is
because i am pointing to a place in memory for the string, and that this wont
last for a very long time. So i am wondering how i am supposed to use strings
in a user defined type so they will be saved in the database when the type is
inserted in a table?

-Kjetil

pgsql-novice by date:

Previous
From: Mester József
Date:
Subject: Can Clipper connect Postgresql
Next
From: Frank Bax
Date:
Subject: Re: Can Clipper connect Postgresql