Re: Problem integrating C stub

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Smita Vijayakumar <smita(dot)vijayakumar(at)globallogic(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problem integrating C stub
Date: 2008-02-07 16:17:17
Message-ID: 4784.1202401037@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Smita Vijayakumar <smita(dot)vijayakumar(at)globallogic(dot)com> writes:
> While integrating C stub in stored procedure, I came across the
> following problem whenever the DB triggered the SP:
> "
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.

> My C code looks like this:

> str[str1Size]='\0';

Scribbling on pass-by-reference arguments is verboten. Scribbling past
the end of one is even worse.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Lush 2008-02-08 12:22:47 Real time backup options.
Previous Message Smita Vijayakumar 2008-02-07 09:44:27 Problem integrating C stub