Re: Problem integrating C stub - Mailing list pgsql-novice

From Tom Lane
Subject Re: Problem integrating C stub
Date
Msg-id 4784.1202401037@sss.pgh.pa.us
Whole thread Raw
In response to Problem integrating C stub  (Smita Vijayakumar <smita.vijayakumar@globallogic.com>)
List pgsql-novice
Smita Vijayakumar <smita.vijayakumar@globallogic.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

pgsql-novice by date:

Previous
From: Smita Vijayakumar
Date:
Subject: Problem integrating C stub
Next
From: Michael Lush
Date:
Subject: Real time backup options.