Re: Array types and loading

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: apb18(at)cornell(dot)edu
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Array types and loading
Date: 2004-08-18 21:39:21
Message-ID: 4152.1092865161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Aaron Birkland <birkie(at)gmail(dot)com> writes:
> In a nutshell, it looks like whenever COPY is invoked, and when a user
> defined type is used in an array, then stat64() will be called for
> each row accessed on the shared library relevant for the user defined
> type.

Let me guess ... PG 7.3 or older?

7.4 should avoid the problem because array_in() caches function lookup
information for the element type's input function across multiple calls.

In 8.0 there's also a cache at the fmgr_info() level to eliminate
repeated searches for a dynamically loaded function.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Aaron Birkland 2004-08-18 21:47:50 Re: Array types and loading
Previous Message Aaron Birkland 2004-08-18 19:39:29 Array types and loading