Re: Generating Huge String?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steffen Nielsen <styf(at)cs(dot)auc(dot)dk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Generating Huge String?
Date: 2002-04-23 13:49:30
Message-ID: 10945.1019569770@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Steffen Nielsen <styf(at)cs(dot)auc(dot)dk> writes:
> I have tried using chunks technique when creating huge string for a stored
> procedure (C code). I work like charm for small string, but when i create
> large strings i get a "server closed the connection unexpectedly" :-(

Look for bugs in your code ;-). I'd bet it's scribbling on memory that
doesn't belong to it.

> And how does one normally handle Large strings in postgres?

The StringInfo functions are moderately convenient in most cases.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2002-04-23 14:13:29 Re: Vote on SET in aborted transaction
Previous Message Steffen Nielsen 2002-04-23 08:55:52 Generating Huge String?