Re: postgresql 7.1.1 and textout and textin

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Jaume Teixi <teixi(at)6tems(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql 7.1.1 and textout and textin
Date: 2001-06-27 14:03:21
Message-ID: 3B39E7A9.2D9B6C52@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> trying to migrate production servers form 7.0.2 to 7.1.1 now I need to
> compile an function written in c
...
> I get following compile errors:
> c:82: warning: passing arg 1 of `textout' from incompatible pointer type
> line 82: src = textout( src_string );
...
> any points to convert textout and textin to 7.1 ?

Look in src/backend/utils/adt/ for examples of functions called from
within other functions. You will want to upgrade to the new calling
convention for functions, and will need to use some macros and "direct
call" wrappers to accomplish this.

It is easy, you just need to match up an example with what you want. Let
us know if you don't find one and we can do some searching to suggest a
specific example...

- Thomas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-06-27 14:24:18 Re: Bug in createlang?
Previous Message Frank Ch. Eigler 2001-06-27 13:58:08 Re: Encrypting pg_shadow passwords