Re: size of function body - Mailing list pgsql-general

From Joe Conway
Subject Re: size of function body
Date
Msg-id 3D345E9A.6090806@joeconway.com
Whole thread Raw
In response to size of function body  (Ralph Graulich <maillist@shauny.de>)
Responses Re: size of function body
List pgsql-general
Ralph Graulich wrote:
> Hi,
>
>
> after some fooling around I figured out that a function body can't be
> larger than the defined postgres' block size, which defaults to 8192
> byte. The same time I read enlarging the default block size has a negative
> performance impact.
>
> How would the "long time experts" decide on the following issues given:
>
> (1) running postgres 7.2.1 on a 32 bit system
> (2) needing (if not splitting up, which would be a tedious work) about at
> least 30 / 35 functions larger than about 20 to 25 kbyte each
> (3) those functions are called for almost every query, which means all
> input/output from the application to the database is done by calling
> functions

Given this set of issues, I would write my functions in C.

Joe




pgsql-general by date:

Previous
From: Jeff Boes
Date:
Subject: lo_unlink from a trigger
Next
From: "Gregory Wood"
Date:
Subject: Re: table size growing out of control