pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fernando Eduardo B. L. e Carvalho <feblec@ig.com.br>
To: pgsql-sql@postgresql.org
Subject: C Functions
Date: Thu, 12 Jul 2001 08:33:54 -0300
Message-ID: <3B4D8B22.7C860BDA@ig.com.br> (raw)
References: <994948253.2949.1.camel@Monet>



Attachments:

email (text/plain, 405B) download #include <pgsql/postgres.h> #include <string.h> char *fernando(char *texto) { char *resultp = palloc(strlen(texto)+5); *resultp = *texto; strcat(resultp," mais"); return resultp; } gcc -shared fernando.c -o fernando.so CREATE FUNCTION fernando (bpchar) RETURNS bpchar AS '/u/src/tef/fernando.so' LANGUAGE 'c'; CREATE SELECT fernando ('Teste'); ERROR: Memory exhausted in AllocSetAlloc(287341377)

view thread (2+ messages)  latest in thread

Message-ID: <3B4D8B22.7C860BDA@ig.com.br>
Permalink:  ../3B4D8B22.7C860BDA@ig.com.br/
Also on:    postgresql.org/message-id/3B4D8B22.7C860BDA@ig.com.br

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: feblec@ig.com.br
  Subject: Re: C Functions
  In-Reply-To: <3B4D8B22.7C860BDA@ig.com.br>

* 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