Thank you for responding.
I was not using Makefile on purpose because I want to know exactly what I
am doing wrong (anyway - make in src/tutorial leads in the ver 6.4.2 to
errors due to inconsitency in header files - starting with missing
declaration of char16 type).
>From what you wrote I guess you also do not know how to link something to
postgres? Have anyone on this list ever tried it?
Everything is OK when I add a new column of the new type in the table as a
LAST one. Troubles come when I need to have another column behind it (of
the same type, for instance).
The solution that I described in my last e-mail and that does not work
succeeds in calling my function (I know this from debug messages in the
body of the func), but than *something* goes wrong.
Petr Danecek
I do not understand the folowing line:
> I'm just curious: how do I decode base64 attachments?
I attached the files to the message in pine and do not know anything about
base64 nor found a mention in man pages.
On Wed, 3 Feb 1999, Gene Selkov Jr. wrote:
> > I am new here and hoping I am at the right place. If not would you please
> > redirect me?
> >
> > I am having troubles with user defined types.
> > I create very simple type "complex" from the postgres tutorial, even make
> > it much more simple, so I can be pretty sure there is not any memory
> > leak:
> > (see attachment - try_this.c)
> >
> > Then I compile it:
> > g++ -c try_this.cc
> > g++ -shared -o try_this.so try_this.o -lgcc
> >
>
> The way you did, more than one thing could go wrong:
>
> 1. Linking a c++ code may be a problem, because postgres has its own
> shared object interface. Not that it is entirely impossible, but too
> few people (if at all) worried about it.
>
> 2. Invoking compiler manually can be a source of trouble. It would be
> safer to use a more generic method, such as Makefile found in tutorial
> directory.
>
> 3. "complex" used to be a very instructive example, but it probably
> isn't that useful anymore because postgres now comes with complex
> built in. You'd rather change "complex" to some other name if you want
> to follow all the steps in tutorial.
>
> > Then I define in postgres types and functions.
> >
> > (see attachment - create)
>
> I'm just curious: how do I decode base64 attachments?
>
> --Gene
>