pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
postgresql 7.1.1 and textout and textin 2+ messages / 2 participants [nested] [flat]
* postgresql 7.1.1 and textout and textin @ 2001-05-29 09:43 Jaume Teixi <teixi@6tems.com> 2001-05-29 14:04 ` Re: postgresql 7.1.1 and textout and textin Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: Jaume Teixi @ 2001-05-29 09:43 UTC (permalink / raw) To: pgsql-admin Hello, 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: #include <postgres.h> #include <utils/builtins.h> #include <utils/palloc.h> #include <string.h> //now doesn't exist ? here the mistake ? I get following compile errors: c:82: warning: passing arg 1 of `textout' from incompatible pointer type line 82: src = textout( src_string ); c:238: warning: passing arg 1 of `textin' from incompatible pointer type line 238: return( (text *)textin( ret ) ); thanks! jaume. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: postgresql 7.1.1 and textout and textin 2001-05-29 09:43 postgresql 7.1.1 and textout and textin Jaume Teixi <teixi@6tems.com> @ 2001-05-29 14:04 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2001-05-29 14:04 UTC (permalink / raw) To: Jaume Teixi <teixi@6tems.com>; +Cc: pgsql-admin 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-05-29 14:04 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-05-29 09:43 postgresql 7.1.1 and textout and textin Jaume Teixi <teixi@6tems.com> 2001-05-29 14:04 ` Tom Lane <tgl@sss.pgh.pa.us>
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