From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaume Teixi <teixi@6tems.com>
Cc: psql-admin <pgsql-admin@postgresql.org>
Subject: Re: postgresql 7.1.1 and textout and textin
Date: Tue, 29 May 2001 10:04:16 -0400
Message-ID: <18395.991145056@sss.pgh.pa.us> (raw)
In-Reply-To: <20010529114345.3daad57e.teixi@6tems.com>
References: <20010529114345.3daad57e.teixi@6tems.com>
Jaume Teixi <teixi@6tems.com> writes:
> trying to migrate production servers form 7.0.2 to 7.1.1 now I need to
> compile an function written in c and when compiling using following
> includes:
> c:82: warning: passing arg 1 of `textout' from incompatible pointer type
> line 82: src = textout( src_string );
textout (and all the other built-in SQL functions) now have to be called
via the "new style" calling convention. Which unfortunately is a pain
in the neck to code in bare C. A number of modules do something like
this:
#define _textout(str) DatumGetPointer(DirectFunctionCall1(textout, PointerGetDatum(str)))
The price of progress :-(. See the documentation for more info.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, teixi@6tems.com
Subject: Re: postgresql 7.1.1 and textout and textin
In-Reply-To: <18395.991145056@sss.pgh.pa.us>
References: <20010529114345.3daad57e.teixi@6tems.com> <18395.991145056@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox